I was not really sure how to name this topic, but let me describe what I am trying to do. I have a Haiku L-series fan in my bedroom (Which is an amazing fan for anyone interested) that can be "controlled by smart home devices." What that really means is that it can be controlled by Alexa and I want to integrate it into HS.
To do this I have configured a module someone wrote that translates MQTT commands into the Haiku API protocol and I have setup mcsMQTT on HS to send the commands to my MQTT broker.
What I am trying to do now is setup a virtual device that can be set to the values 1-7 such that whenever it is set to one of those it appends the value of the virtual device to the MQTT topic as the payload.
I am thinking the only way I am going to be able to do this is with some scripting, but I thought I would throw it out and see what the collective could come up with.
Any thoughts on how to create/set the device values here to achieve what i am trying to do?
Thanks in advance guys!
To do this I have configured a module someone wrote that translates MQTT commands into the Haiku API protocol and I have setup mcsMQTT on HS to send the commands to my MQTT broker.
What I am trying to do now is setup a virtual device that can be set to the values 1-7 such that whenever it is set to one of those it appends the value of the virtual device to the MQTT topic as the payload.
I am thinking the only way I am going to be able to do this is with some scripting, but I thought I would throw it out and see what the collective could come up with.
Any thoughts on how to create/set the device values here to achieve what i am trying to do?
Thanks in advance guys!
Comment