Homey Support over MQTT Hub app - Bestway Lay-Z Spa #929
DobbyNator94
started this conversation in
Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Here is the config for everyone that has an Homey, installs also MQTT Broker onto the Homey and make a new Device in the MQTT Hub App for the Bestway pump:
{
"onoff": {
"capability": "onoff",
"stateTopic": "layzspa/message",
"setTopic": "layzspa/command",
"valueTemplate": "$.AIR",
"outputTemplate": "(value) => JSON.stringify({ CMD: 2, VALUE: value ? 1 : 0, XTIME: 0, INTERVAL: 0 })",
"displayName": "AirJet"
},
"onoff.1": {
"capability": "onoff",
"stateTopic": "layzspa/message",
"setTopic": "layzspa/command",
"valueTemplate": "$.FLT",
"outputTemplate": "(value) => JSON.stringify({ CMD: 4, VALUE: value ? 1 : 0, XTIME: 0, INTERVAL: 0 })",
"displayName": "Pumpe"
},
"onoff.2": {
"capability": "onoff",
"stateTopic": "layzspa/message",
"setTopic": "layzspa/command",
"valueTemplate": "$.GRN",
"outputTemplate": "(value) => JSON.stringify({ CMD: 3, VALUE: value ? 1 : 0, XTIME: 0, INTERVAL: 0 })",
"displayName": "Heizung"
},
"measure_temperature": {
"capability": "measure_temperature",
"stateTopic": "layzspa/message",
"setTopic": "",
"valueTemplate": "$.TMP",
"outputTemplate": "",
"displayName": "Aktuelle Temperatur"
},
"measure_temperature.1": {
"capability": "measure_temperature",
"stateTopic": "layzspa/message",
"setTopic": "",
"valueTemplate": "$.TGT",
"outputTemplate": "",
"displayName": "Ziel-Temperatur"
},
"dim": {
"capability": "dim",
"stateTopic": "layzspa/message",
"setTopic": "layzspa/command",
"valueTemplate": "(TGT - 20) / 20",
"outputTemplate": "(value) => { const tgt = 20 + value * 20; return JSON.stringify({ CMD: 0, VALUE: Math.round(tgt), XTIME: 0, INTERVAL: 0 }); }",
"displayName": "Ziel-Temperatur"
},
"onoff.3": {
"capability": "onoff",
"stateTopic": "layzspa/message",
"setTopic": "layzspa/command",
"valueTemplate": "$.UNT",
"outputTemplate": "(value) => JSON.stringify({ CMD: 1, VALUE: value ? 1 : 0, XTIME: 0, INTERVAL: 0 })",
"displayName": "Einheit Temperatur"
}
}
Beta Was this translation helpful? Give feedback.
All reactions