Dzień dobry,
Mam głowice TRV602 która przedstawia się jako TS0601.
Głowice połączone są za pomocą zigbee2MQTT i core-mosquitto.
Mam problem z modyfikacją harmonogramu.
Na stronie:
https://www.zigbee2mqtt.io/devices/TS0601_thermostat_1.html#tuya-ts0601_thermostat_1
Jest opisane że pod zigbee2mqtt/FRIENDLY_NAME/set należy opublikować {“undefined”: {“monday_schedule”: VALUE, “tuesday_schedule”: VALUE, “wednesday_schedule”: VALUE, “thursday_schedule”: VALUE, “friday_schedule”: VALUE, “saturday_schedule”: VALUE, “sunday_schedule”: VALUE}}
Podglądnełem co wysyła głowica:
MQTT publish: topic ‘zigbee2mqtt/Termostat Korytarz’, payload ‘{“battery”:92,“boost_heating”:“OFF”,“boost_heating_countdown”:null,“child_lock”:“UNLOCK”,“current_heating_setpoint”:“21.0”,“friday_schedule”:" 4h:0m 15°C, 8h:0m 15°C, 16h:0m 15°C, 22h:0m 15°C “,“heating”:“ON”,“linkquality”:135,“local_temperature”:“17.8”,“local_temperature_calibration”:”-1.6",“max_temperature”:“27.0”,“min_temperature”:“5.0”,“monday_schedule”:" 4h:0m 15°C, 8h:0m 15°C, 16h:0m 15°C, 22h:0m 15°C “,“position”:“100.0”,“preset”:“manual”,“saturday_schedule”:” 9h:0m 15°C, 11h:30m 15°C, 18h:0m 15°C, 22h:0m 15°C “,“sunday_schedule”:” 9h:0m 15°C, 11h:30m 15°C, 18h:0m 15°C, 22h:0m 15°C “,“system_mode”:“auto”,“thursday_schedule”:” 4h:0m 15°C, 8h:0m 15°C, 16h:0m 15°C, 22h:0m 15°C “,“tuesday_schedule”:” 4h:0m 15°C, 8h:0m 15°C, 16h:0m 15°C, 22h:0m 15°C “,“wednesday_schedule”:” 4h:0m 15°C, 8h:0m 15°C, 16h:0m 15°C, 22h:0m 15°C ",“window”:“CLOSED”,“window_detection”:“ON”}’
Na tej podstawie stworzyłem taki wpis:
{“undefined”: {“monday_schedule”: “4h:0m 21°C, 8h:0m 19°C, 19h:0m 21°C, 22h:0m 19°C”, “tuesday_schedule”: “4h:0m 21°C, 8h:0m 19°C, 19h:0m 21°C, 22h:0m 19°C”, “wednesday_schedule”: “4h:0m 21°C, 8h:0m 19°C, 19h:0m 21°C, 22h:0m 19°C”, “thursday_schedule”: “4h:0m 21°C, 8h:0m 19°C, 19h:0m 21°C, 22h:0m 19°C”, “friday_schedule”: “4h:0m 21°C, 8h:0m 19°C, 19h:0m 21°C, 22h:0m 19°C”, “saturday_schedule”: “7h:45m 21°C, 11h:0m 19°C, 20h:0m 21°C, 22h:0m 19°C”, “sunday_schedule”: “7h:45m 21°C, 11h:0m 19°C, 20h:0m 21°C, 22h:0m 19°C”}}
Następnie opublikowałem go pod: zigbee2mqtt/Termostat Korytarz/set
Niestety po opublikowaniu mam poniższy błąd:
No converter available for ‘undefined’ ({“friday_schedule”:“4h:0m 21°C, 8h:0m 19°C, 19h:0m 21°C, 22h:0m 19°C”,“monday_schedule”:“4h:0m 21°C, 8h:0m 19°C, 19h:0m 21°C, 22h:0m 19°C”,“saturday_schedule”:“7h:45m 21°C, 11h:0m 19°C, 20h:0m 21°C, 22h:0m 19°C”,“sunday_schedule”:“7h:45m 21°C, 11h:0m 19°C, 20h:0m 21°C, 22h:0m 19°C”,“thursday_schedule”:“4h:0m 21°C, 8h:0m 19°C, 19h:0m 21°C, 22h:0m 19°C”,“tuesday_schedule”:“4h:0m 21°C, 8h:0m 19°C, 19h:0m 21°C, 22h:0m 19°C”,“wednesday_schedule”:“4h:0m 21°C, 8h:0m 19°C, 19h:0m 21°C, 22h:0m 19°C”})
Przyznam sie że MQTT dopiero rozpoczełem przygodę i nie mam za dużej wiedzy. Nie wiem czy składnia ok i jak prawidłowopowinien wyglądac “ładunek”.