Much appreciated, that worked for me bridging HA -> Snips MQTT.
I have another question for you guys, I am getting an error when attempting to use the “HomeAssistant” skill from the Snips Console. Do you use it, or are you making custom intents for everything, or something else? If I define an intent manually in HA it works, but not this Snips-HA integration.
ie “Turn off kitchen light”
hermes/intent/hass:HassLightSet {"sessionId":"aab9d81b-461e-4f2e-82f5-d0538aa81c2b","customData":null,"siteId":"default","input":"turn kitchen light","intent":{"intentName":"hass:HassLightSet","probability":0.77675915},"slots":[{"rawValue":"light","value":{"kind":"Custom","value":"light"},"range":{"start":13,"end":18},"entity":"light","slotName":"light"}]}
in my HA logs…
2018-07-13 03:54:57 WARNING (MainThread) [homeassistant.helpers.intent] Received invalid slot info for HassTurnOn: extra keys not allowed @ data['site_id']
2018-07-13 03:54:57 ERROR (MainThread) [homeassistant.components.snips] Error while handling intent: HassTurnOn.
Traceback (most recent call last):
File "/usr/src/app/homeassistant/helpers/intent.py", line 59, in async_handle
result = await handler.async_handle(intent)
File "/usr/src/app/homeassistant/helpers/intent.py", line 187, in async_handle
slots = self.async_validate_slots(intent_obj.slots)
File "/usr/src/app/homeassistant/helpers/intent.py", line 142, in async_validate_slots
return self._slot_schema(slots)
File "/usr/local/lib/python3.6/site-packages/voluptuous/schema_builder.py", line 267, in __call__
return self._compiled([], data)
File "/usr/local/lib/python3.6/site-packages/voluptuous/schema_builder.py", line 587, in validate_dict
return base_validate(path, iteritems(data), out)
File "/usr/local/lib/python3.6/site-packages/voluptuous/schema_builder.py", line 425, in validate_mapping
raise er.MultipleInvalid(errors)
voluptuous.error.MultipleInvalid: extra keys not allowed @ data['site_id']
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/usr/src/app/homeassistant/components/snips.py", line 139, in message_received
hass, DOMAIN, intent_type, slots, request['input'])
File "/usr/src/app/homeassistant/helpers/intent.py", line 65, in async_handle
'Received invalid slot info for {}'.format(intent_type)) from err
homeassistant.helpers.intent.InvalidSlotInfo: Received invalid slot info for HassTurnOn
Not sure where the problem lies here, my Snips install, HA, or the ‘Skill’