☰
Current Page
Main Menu
Home
Home
Editing
EurotronicStellaZ
Edit
Preview
h1
h2
h3
Keybinding
default
vim
emacs
Markup
Markdown
Plain Text
Pod
RDoc
reStructuredText
AsciiDoc
BibTeX
Creole
MediaWiki
Org-mode
Textile
Help 1
Help 1
Help 1
Help 2
Help 3
Help 4
Help 5
Help 6
Help 7
Help 8
Autosaved text is available. Click the button to restore it.
Restore Text
--- title: EurotronicStellaZ --- Stella Z-Wave Thermostatic Radiator Valve # Operation Wake-up : Single button press Calibrate : 2.5s button press Include : 5s button press # ozwdaemon ## Enable Polling `stellaz-poll.sh` ```shell #!/bin/sh set -e PRETEND=echo MQTT_SERVER=localhost # CUSTOMIZE ME MQTT_TIMEOUT=5 # StellaZ multilevel sensor for air temperature AIR\_TEMPERATURE\_CLASS=49 # intensity 10 ~= 1 minute # wakeup is 480s ~ 8min so poll every 7mins INTENSITY=70 get\_value\_id() { node_id=$1 mosquitto_sub -W $MQTT_TIMEOUT -C 1 -h $MQTT_SERVER -t "OpenZWave/1/node/$node_id/instance/1/commandclass/$AIR\_TEMPERATURE\_CLASS/value/#" \ | python -c "import sys,json; j = json.load(sys.stdin); print(j['ValueIDKey'])" } enable_polling() { value_id=$1 payload='{"ValueIDKey": '$value_id', "Intensity": '$INTENSITY'}' echo mosquitto_pub -h $MQTT_SERVER -t "OpenZWave/1/command/enablepoll/" -m "$payload" } for node_id in $@ do value_id=$(get\_value\_id $node_id) enable_polling $value_id done ``` Usage: stellaz-poll.sh [node_ids...] [1]: EurotronicStellaZ?action=sourceblock&num=1
Uploading file...
Sidebar
# SideBar * [Home][1] * [Projects][2] * * * <!-- --> * [Code][3] * [Tech][4] * [Network][5] * [MediaCentre][6] * [UAV][7] * * * <!-- --> * [Travel][8] * [Music][9] * [Horse Riding][10] * [Study][11] * [Games][12] * [Other Activities][13] * * * <!-- --> * [Car][14] * [House][15] * [Watch][16] * [Clothing][17] * [Miscellany][18] * * * [1]: /Home [2]: /Projects [3]: /Code/Code [4]: /Tech/Tech [5]: /Network/Network [6]: /MediaCentre/MediaCentre [7]: /UAV/UAV [8]: /Travel/Travel [9]: /Music/Music [10]: /HorseRiding/HorseRiding [11]: /Study/Study [12]: /Games/Games [13]: /Do/Do [14]: /Car/Car [15]: /House/House [16]: /Watch/Watch [17]: /Clothing/Clothing [18]: /Miscellany/Miscellany
Edit message:
Cancel