Hi Mike, I am not sure if You need to use IntentBuilder
, with Padatious intent I think it is not necessary.
This is how we do it in HomeAssistant skill:
Intent set.climate.intent
:
set (the|) {entity} temperature to {temp} degrees
Handler:
@intent_handler('set.climate.intent')
def handle_set_thermostat_intent(self, message: Message) -> None:
"""Handle set climate intent."""
self.log.debug("Set thermostat intent on entity: %s", message.data.get("entity"))
message.data["Entity"] = message.data.get("entity")
message.data["Temp"] = message.data.get("temp")
self._handle_set_thermostat(message)
def _handle_set_thermostat(self, message: Message) -> None:
"""Handler for setting thermostats."""
entity = message.data["entity"]
self.log.debug("Entity: %s", entity)
self.log.debug("This is the message data: %s", message.data)
temperature = message.data["temp"]
self.log.debug("Temperature: %s", temperature)
Also check Remote debug skill, if you use VS Code, this can help you understood, whats going on in Your and Mycroft code.