Open JohnHind opened 10 months ago
Agree. It would definitely help to provide a JSON key to extract temperature data from. Would massively improve user experience and allow easy setup in zigbee2mqtt and/or home assistant setups.
I'll take a look at the PR this weekend and see about merging it.
I was also considering adding a regex match option.
merged and bumped release to 0.0.3 ... will close this issue after it bakes for a couple weeks
appears to be working fine .... something I did note post release was documentation updates are missing for this. it would have been good to have had readme updated to include the details.
works for me. thanks to all involved.
Many thanks, @devbar and @synman. All it needs now for full flexibility is:
My system has a 'report' topic, payload a JSON string containing the current temperature and the current state of the heater relay, and a 'command' topic, payload a JSON string containing a 'channel' key one of which is the heater switch, and a 'value' key, 0 for off, 1 for on. While I have now written a broker which translates the topics, and @devbar change enabled me to retire the translation of the Temperature Monitoring topic, the changes above would allow this broker to be retired completely.
Nice work and much needed!
But this probably only works for people who have control over the format of the MQTT messages used by the hardware sensor and actuator. The following suggestions would make it more flexible: