node-red-contrib-sonoff-server
node-red-contrib-sonoff-server copied to clipboard
Temperature
The first few times i got the connection, the temperature shown up at payload[0].rawMessageLastUpdate.params.currentTemperature ... , then it disappeared
before:
after:
seams like the device sends different messages, without specifing the type of the message other than "action: update". But the raw message is the 1:1 message the device is sending. You might need to parse them and keep only the messages that is delivering the values you need. you might want to open an pull-request or an issue in the project. You might want to request the currentTemp and currentHumanity as latestKnownTemp and latestKnowHumanity as new parameters in the standard message. => https://github.com/mdopp/simple-sonoff-server/issues
@Simo1978 Can you show us how is your node-red configuration, maybe help us with a tutorial on how you set up an run the server.
I've created a new node sonoff-th that outputs current temperature / humidity values from TH10/TH16 devices. It is based on sonoff-state with a few additions / checks:
Here are the files: node-th.js node-th.html
@saryn if you're happy with the code /style I could create a new PR.