I am writing a skill to turn some lights on/off.
My intent file contains the line:
(switch | turn) the {{name}} light {{state}}
(switch | turn) {{name}} light {{state}}
(switch | turn) {{name}} {{state}}
I have a file called state.entity:
on
off
I also have a file called name.entity:
lounge
hall
My skill includes the code:
@intent_handler(‘lights.shelly.intent’)
def handle_lights_shelly(self, message):
name = message.data.get(‘name’)
state = message.data.get(‘state’)
If I say “turn the lounge light red”, the variable state contains “red”. Likewise, if I say “turn bathroom light on”, the variable name contains “bathroom”. Why is Mycroft ignoring my entity files?