Macie tu jak sterować zaworkiem bezpośrednio z mosquitto z cli. Ja używam tego przy Domoticzu w skryptach:
mosquitto_pub -h localhost -t ‘zigbee2mqtt/termostat_w_pokoju/set’ -m ‘{“window_detection”: “OFF”}’
mosquitto_pub -h localhost -t ‘zigbee2mqtt/termostat_w_pokoju/set’ -m ‘{“window_detection”: “ON”}’
mosquitto_pub -h localhost -t ‘zigbee2mqtt/termostat_w_pokoju/set’ -m ‘{“valve_detection”: “OFF”}’
mosquitto_pub -h localhost -t ‘zigbee2mqtt/termostat_w_pokoju/set’ -m ‘{“valve_detection”: “ON”}’
mosquitto_pub -h localhost -t ‘zigbee2mqtt/termostat_w_pokoju/set’ -m ‘{“system_mode”: “off”}’
mosquitto_pub -h localhost -t ‘zigbee2mqtt/termostat_w_pokoju/set’ -m ‘{“system_mode”: “heat”}’
mosquitto_pub -h localhost -t ‘zigbee2mqtt/termostat_w_pokoju/set’ -m ‘{“system_mode”: “auto”}’
mosquitto_pub -h localhost -t ‘zigbee2mqtt/termostat_w_pokoju/set’ -m ‘{“away_mode”: “ON”}’
mosquitto_pub -h localhost -t ‘zigbee2mqtt/termostat_w_pokoju/set’ -m ‘{“away_mode”: “OFF”}’
mosquitto_pub -h localhost -t ‘zigbee2mqtt/termostat_w_pokoju/set’ -m ‘{“away_preset_days”: 1}’
mosquitto_pub -h localhost -t ‘zigbee2mqtt/termostat_w_pokoju/set’ -m ‘{“preset”: “schedule”}’
mosquitto_pub -h localhost -t ‘zigbee2mqtt/termostat_w_pokoju/set’ -m ‘{“preset”: “manual”}’
mosquitto_pub -h localhost -t ‘zigbee2mqtt/termostat_w_pokoju/set’ -m ‘{“preset”: “boost”}’
mosquitto_pub -h localhost -t ‘zigbee2mqtt/termostat_w_pokoju/set’ -m ‘{“preset”: “complex”}’
mosquitto_pub -h localhost -t ‘zigbee2mqtt/termostat_w_pokoju/set’ -m ‘{“preset”: “comfort”}’
mosquitto_pub -h localhost -t ‘zigbee2mqtt/termostat_w_pokoju/set’ -m ‘{“preset”: “eco”}’
mosquitto_pub -h localhost -t ‘zigbee2mqtt/termostat_w_pokoju/set’ -m ‘{“auto_lock”: “MANUAL”}’
mosquitto_pub -h localhost -t ‘zigbee2mqtt/termostat_w_pokoju/set’ -m ‘{“auto_lock”: “AUTO”}’
mosquitto_pub -h localhost -t ‘zigbee2mqtt/termostat_w_pokoju/set’ -m ‘{“child_lock”: “LOCK”}’
mosquitto_pub -h localhost -t ‘zigbee2mqtt/termostat_w_pokoju/set’ -m ‘{“child_lock”: “UNLOCK”}’
mosquitto_pub -h localhost -t ‘zigbee2mqtt/termostat_w_pokoju/set’ -m ‘{“boost_time”: 300}’
mosquitto_pub -h localhost -t ‘zigbee2mqtt/termostat_w_pokoju/set’ -m ‘{“current_heating_setpoint”: 20}’
mosquitto_pub -h localhost -t ‘zigbee2mqtt/termostat_w_pokoju/set’ -m ‘{“comfort_temperature”: 21}’
mosquitto_pub -h localhost -t ‘zigbee2mqtt/termostat_w_pokoju/set’ -m ‘{“eco_temperature”: 19}’
mosquitto_pub -h localhost -t ‘zigbee2mqtt/termostat_w_pokoju/set’ -m ‘{“local_temperature_calibration”: -4}’
mosquitto_pub -h localhost -t ‘zigbee2mqtt/termostat_w_pokoju/set’ -m ‘{“max_temperature”: 35}’
mosquitto_pub -h localhost -t ‘zigbee2mqtt/termostat_w_pokoju/set’ -m ‘{“min_temperature”: 5}’
mosquitto_pub -h localhost -t ‘zigbee2mqtt/termostat_w_pokoju/set’ -m ‘{“week”: “5+2”}’
mosquitto_pub -h localhost -t ‘zigbee2mqtt/termostat_w_pokoju/set’ -m ‘{“week”: “6+1”}’
mosquitto_pub -h localhost -t ‘zigbee2mqtt/termostat_w_pokoju/set’ -m ‘{“week”: “7”}’
mosquitto_pub -h localhost -t ‘zigbee2mqtt/termostat_w_pokoju/set’ -m ‘{“away_preset_temperature”: 15}’
mosquitto_pub -h localhost -t ‘zigbee2mqtt/termostat_w_pokoju/set’ -m ‘{“force”: “normal”}’
mosquitto_pub -h localhost -t ‘zigbee2mqtt/termostat_w_pokoju/set’ -m ‘{“force”: “open”}’
mosquitto_pub -h localhost -t ‘zigbee2mqtt/termostat_w_pokoju/set’ -m ‘{“force”: “close”}’
mosquitto_pub -h localhost -t ‘bridge/request/device/ota_update/check’ -m ‘{“id”: “termostat_w_pokoju”}’
mosquitto_pub -h localhost -t ‘zigbee2mqtt/termostat_w_pokoju/set/schedule’ -m ‘{“workdays”: [{“hour”: 6,“minute”: 0,“temperature”: 20},{“hour”: 8,“minute”: 0,“temperature”: 21},{“hour”: 11,“minute”: 30,“temperature”: 21},{“hour”: 12,“minute”: 30,“temperature”: 21},{“hour”: 17,“minute”: 30,“temperature”: 21},{“hour”: 21,“minute”: 0,“temperature”: 19}]}’
mosquitto_pub -h localhost -t ‘zigbee2mqtt/termostat_w_pokoju/set/schedule’ -m ‘{“holidays”: [{“hour”: 6,“minute”: 0,“temperature”: 20},{“hour”: 8,“minute”: 0,“temperature”: 21},{“hour”: 11,“minute”: 30,“temperature”: 21},{“hour”: 12,“minute”: 30,“temperature”: 21},{“hour”: 17,“minute”: 30,“temperature”: 21},{“hour”: 21,“minute”: 0,“temperature”: 19}]}’
nasłuch:
mosquitto_sub -v -t ‘#’|grep zigbee
Używam bokera bez hasła i na domyslnym porcie 1883 wiec w razie potrzeby trzeba komendy uzupełnic o parametry loginu i portu.
Jak wczesniej pisałem jest zjebka w zigbee2mqtt dotycząca obsługi window_detect