node-red-contrib-sonoff-server icon indicating copy to clipboard operation
node-red-contrib-sonoff-server copied to clipboard

Temperature

Open Simo1978 opened this issue 6 years ago • 3 comments

The first few times i got the connection, the temperature shown up at payload[0].rawMessageLastUpdate.params.currentTemperature ... , then it disappeared

before: cattura1

after:

cattura

Simo1978 avatar Apr 08 '18 16:04 Simo1978

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

mdopp avatar Apr 26 '18 20:04 mdopp

@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.

crilam avatar Apr 30 '18 00:04 crilam

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:

image

image

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.

PKGeorgiev avatar Jun 20 '18 12:06 PKGeorgiev