Hi everyone, hopefully I can explain this properly but just wondering if this is something that can be done with C4 or if a driver has to be made for it. I'll use MQTT as an example with the Berto IoT Gateway that I have set up today but this would apply to any driver like the HTTP webhook one that receives external commands. With this, I can do things like subscribe to a topic like "zwave/kitchen_temperature" which can publish a message such as the temperature like "70" and so on. I can then easily trigger events in C4, such as "if topic zwave/kitchen_temperature receives a message, do XYZ."
My question though is, can I use data from something like this but to actually update a C4 device?
- Create a thermostat/temperature device in C4 like you would for any device
- Not bind it to any input sensor or temperature sensor
- Use the Berto MQTT driver subscribing to the zwave/kitchen_temperature topic
- Have Home Assistant every 5 minutes publish the current temperature in Fahrenheit to the zwave/kitchen_temperature topic
- Have C4 receive that message, and update the C4 Temperature sensor device to be the received temperature
So, almost like the Berto MQTT driver is the relay that receives the temperature and then updates it in C4.
I tried via programming but there's no actions that let you set the temperature sensor value, since it understandably wants to retrieve it from something connected to it. I have tons of z-wave and other devices in Home Assistant that I can easily control from C4 via MQTT, but just wondering if there's a way to do the reverse and update devices in C4 based on MQTT, or if that is getting into custom driver territory. Thanks!
Question
416to305
Hi everyone, hopefully I can explain this properly but just wondering if this is something that can be done with C4 or if a driver has to be made for it. I'll use MQTT as an example with the Berto IoT Gateway that I have set up today but this would apply to any driver like the HTTP webhook one that receives external commands. With this, I can do things like subscribe to a topic like "zwave/kitchen_temperature" which can publish a message such as the temperature like "70" and so on. I can then easily trigger events in C4, such as "if topic zwave/kitchen_temperature receives a message, do XYZ."
My question though is, can I use data from something like this but to actually update a C4 device?
- Create a thermostat/temperature device in C4 like you would for any device
- Not bind it to any input sensor or temperature sensor
- Use the Berto MQTT driver subscribing to the zwave/kitchen_temperature topic
- Have Home Assistant every 5 minutes publish the current temperature in Fahrenheit to the zwave/kitchen_temperature topic
- Have C4 receive that message, and update the C4 Temperature sensor device to be the received temperature
So, almost like the Berto MQTT driver is the relay that receives the temperature and then updates it in C4.
I tried via programming but there's no actions that let you set the temperature sensor value, since it understandably wants to retrieve it from something connected to it. I have tons of z-wave and other devices in Home Assistant that I can easily control from C4 via MQTT, but just wondering if there's a way to do the reverse and update devices in C4 based on MQTT, or if that is getting into custom driver territory. Thanks!
Link to comment
Share on other sites
9 answers to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.