Skip to content

Waterleak sensor #131

Answered by andrei-tatar
Hjorth-Jensen asked this question in Q&A
Dec 11, 2021 · 5 comments · 1 reply
Discussion options

You must be logged in to vote

Hi,

The payload should have a state property with values leak/no leak.

msg = {
  payload: {
    state: 'leak',
  },
};

Example flow:

[{"id":"58757c8d3b6af31f","type":"noraf-sensor","z":"b9a14f5917f73660","devicename":"Sensor","roomhint":"","name":"","temperature":false,"unit":"C","humidity":false,"passthru":false,"nora":"f1e538c1.0315f8","topic":"","filter":false,"sensorSupport":true,"sensorType":"WaterLeak","sensorStates":["leak","no leak"],"sensorNumeric":true,"openCloseSupport":false,"openCloseDiscrete":false,"onOffSupport":false,"x":970,"y":360,"wires":[]},{"id":"cc1e62ada280463d","type":"inject","z":"b9a14f5917f73660","name":"leak","props":[{"p":"payload.state","v":"leak","vt":"str"…

Replies: 5 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Answer selected by Hjorth-Jensen
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@andrei-tatar
Comment options

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants