Advertisement
Guest User

Untitled

a guest
Sep 10th, 2020
59
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 36.18 KB | None | 0 0
  1. 2020-09-10 14:28:16,054 DEBUG [paho.mqtt.client] Sending SUBSCRIBE (d0, m1) [(b'homeassistant/#', 0)]
  2. 2020-09-10 14:28:16,143 DEBUG [mqtt.mqtt] Publishing tuyagateway/discovery/bf57555ad780d86beb4h8c {"name": "test", "deviceid": "bf57555ad780d86beb4h8c", "localkey": "f85f266a7008e8b6", "ip": "192.168.86.62", "ha_discovery": true, "tuya_discovery": true, "protocol": "3.3", "pref_status_cmd": 10, "dps": [{"key": 1, "name": "switch on/off", "type_value": "bool", "minimal": 0.0, "maximal": 255.0, "device_component": "switch", "device_topic": "state_topic"}]} True
  3. 2020-09-10 14:28:16,144 DEBUG [paho.mqtt.client] Sending PUBLISH (d0, q0, r1, m2), 'b'tuyagateway/discovery/bf57555ad780d86beb4h8c'', ... (360 bytes)
  4. 2020-09-10 14:28:16,265 DEBUG [mqtt.mqtt] Publishing homeassistant/switch/bf57555ad780d86beb4h8c_1/config {"ic": "mdi:light-switch", "opt": false, "qos": 0, "name": "test switch", "avty_t": "tuya/bf57555ad780d86beb4h8c/availability", "pl_avail": "online", "pl_not_avail": "offline", "cmd_t": "~command", "pl_off": "OFF", "pl_on": "ON", "stat_t": "~state", "stat_off": "OFF", "stat_on": "ON", "uniq_id": "bf57555ad780d86beb4h8c_1", "device": {"identifiers": ["bf57555ad780d86beb4h8c"], "name": "test switch", "model": "Tuya", "sw_version": "1.0.0", "manufacturer": "GismoCaster", "via_device": "test"}, "~": "tuya/bf57555ad780d86beb4h8c/1/"} True
  5. 2020-09-10 14:28:16,267 DEBUG [paho.mqtt.client] Sending PUBLISH (d0, q0, r1, m3), 'b'homeassistant/switch/bf57555ad780d86beb4h8c_1/config'', ... (534 bytes)
  6. 2020-09-10 14:28:16,326 DEBUG [mqtt.mqtt] Publishing tuyagateway/config/homeassistant/switch {"values": [{"name": "device", "abbreviation": "dev", "type_value": "string", "default_value": ""}, {"name": "device_class", "abbreviation": "dev_cla", "type_value": "string", "default_value": ""}, {"name": "icon", "abbreviation": "ic", "type_value": "string", "default_value": "mdi:light-switch"}, {"name": "initial", "abbreviation": "init", "type_value": "string", "default_value": ""}, {"name": "json_attributes", "abbreviation": "json_attr", "type_value": "string", "default_value": ""}, {"name": "optimistic", "abbreviation": "opt", "type_value": "bool", "default_value": false}, {"name": "retain", "abbreviation": "ret", "type_value": "bool", "default_value": false}, {"name": "unique_id", "abbreviation": "uniq_id", "type_value": "string", "default_value": ""}, {"name": "qos", "abbreviation": "qos", "type_value": "int", "default_value": 0}, {"name": "name", "abbreviation": "name", "type_value": "string", "default_value": "0"}], "topics": [{"name": "availability_topic", "abbreviation": "avty_t", "topic_type": "publish", "default_value": "~availability", "values": [{"name": "payload_available", "abbreviation": "pl_avail", "type_value": "string", "default_value": "online", "tuya_value": true}, {"name": "payload_not_available", "abbreviation": "pl_not_avail", "type_value": "string", "default_value": "offline", "tuya_value": false}]}, {"name": "command_topic", "abbreviation": "cmd_t", "topic_type": "subscribe", "default_value": "~command", "publish_topic": "state_topic", "values": [{"name": "payload_off", "abbreviation": "pl_off", "type_value": "string", "default_value": "OFF", "tuya_value": false}, {"name": "payload_on", "abbreviation": "pl_on", "type_value": "string", "default_value": "ON", "tuya_value": true}]}, {"name": "state_topic", "abbreviation": "stat_t", "topic_type": "publish", "default_value": "~state", "values": [{"name": "state_off", "abbreviation": "stat_off", "type_value": "string", "default_value": "OFF", "tuya_value": false}, {"name": "state_on", "abbreviation": "stat_on", "type_value": "string", "default_value": "ON", "tuya_value": true}]}], "templates": [{"name": "json_attributes_template", "abbreviation": "json_attr_tpl", "default_value": ""}, {"name": "state_template", "abbreviation": "stat_tpl", "default_value": ""}, {"name": "value_template", "abbreviation": "val_tpl", "default_value": ""}]} True
  7. 2020-09-10 14:28:16,327 DEBUG [paho.mqtt.client] Sending PUBLISH (d0, q0, r1, m4), 'b'tuyagateway/config/homeassistant/switch'', ... (2348 bytes)
  8. 2020-09-10 14:28:16,547 DEBUG [mqtt.mqtt] Publishing tuyagateway/config/homeassistant/light {"values": [{"name": "device", "abbreviation": "dev", "type_value": "string", "default_value": ""}, {"name": "device_class", "abbreviation": "dev_cla", "type_value": "string", "default_value": ""}, {"name": "icon", "abbreviation": "ic", "type_value": "string", "default_value": "mdi:light-switch"}, {"name": "json_attributes", "abbreviation": "json_attr", "type_value": "string", "default_value": ""}, {"name": "retain", "abbreviation": "ret", "type_value": "bool", "default_value": false}, {"name": "unique_id", "abbreviation": "uniq_id", "type_value": "string", "default_value": ""}, {"name": "qos", "abbreviation": "qos", "type_value": "int", "default_value": 0}, {"name": "name", "abbreviation": "name", "type_value": "string", "default_value": "0"}], "topics": [{"name": "availability_topic", "abbreviation": "avty_t", "topic_type": "publish", "default_value": "~availability", "values": [{"name": "payload_available", "abbreviation": "pl_avail", "type_value": "string", "default_value": "online", "tuya_value": true}, {"name": "payload_not_available", "abbreviation": "pl_not_avail", "type_value": "string", "default_value": "offline", "tuya_value": false}]}, {"name": "brightness_command_topic", "abbreviation": "bri_cmd_t", "topic_type": "subscribe", "default_value": "~brightness_command", "publish_topic": "brightness_state_topic", "values": []}, {"name": "brightness_state_topic", "abbreviation": "bri_stat_t", "topic_type": "publish", "default_value": "~brightness_state", "values": []}, {"name": "color_temp_command_topic", "abbreviation": "clr_temp_cmd_t", "topic_type": "subscribe", "default_value": "~color_temp_command", "publish_topic": "color_temp_state_topic", "values": []}, {"name": "color_temp_state_topic", "abbreviation": "clr_temp_stat_t", "topic_type": "publish", "default_value": "~color_temp_state", "values": []}, {"name": "command_topic", "abbreviation": "cmd_t", "topic_type": "subscribe", "default_value": "~command", "publish_topic": "state_topic", "values": [{"name": "payload_off", "abbreviation": "pl_off", "type_value": "string", "default_value": "OFF", "tuya_value": false}, {"name": "payload_on", "abbreviation": "pl_on", "type_value": "string", "default_value": "ON", "tuya_value": true}]}, {"name": "effect_command_topic", "abbreviation": "fx_cmd_t", "topic_type": "subscribe", "default_value": "~effect_command", "publish_topic": "effect_state_topic", "values": []}, {"name": "effect_state_topic", "abbreviation": "fx_stat_t", "topic_type": "publish", "default_value": "~effect_state", "values": []}, {"name": "hs_command_topic", "abbreviation": "hs_cmd_t", "topic_type": "subscribe", "default_value": "~hs_command", "publish_topic": "hs_state_topic", "values": []}, {"name": "hs_state_topic", "abbreviation": "hs_stat_t", "topic_type": "publish", "default_value": "~hs_state", "values": []}, {"name": "json_attributes_topic", "abbreviation": "json_attr_t", "topic_type": "publish", "default_value": "~attributes", "values": []}, {"name": "rgb_command_topic", "abbreviation": "rgb_cmd_t", "topic_type": "subscribe", "default_value": "~rgb_command", "publish_topic": "rgb_state_topic", "values": []}, {"name": "rgb_state_topic", "abbreviation": "rgb_stat_t", "topic_type": "publish", "default_value": "~rgb_state", "values": []}, {"name": "state_topic", "abbreviation": "stat_t", "topic_type": "publish", "default_value": "~state", "values": [{"name": "state_off", "abbreviation": "stat_off", "type_value": "string", "default_value": "OFF", "tuya_value": false}, {"name": "state_on", "abbreviation": "stat_on", "type_value": "string", "default_value": "ON", "tuya_value": true}]}, {"name": "white_value_command_topic", "abbreviation": "whit_val_cmd_t", "topic_type": "subscribe", "default_value": "~white_value_command", "publish_topic": "white_value_state_topic", "values": []}, {"name": "white_value_state_topic", "abbreviation": "whit_val_stat_t", "topic_type": "publish", "default_value": "~white_value_state", "values": []}, {"name": "xy_command_topic", "abbreviation": "xy_cmd_t", "topic_type": "subscribe", "default_value": "~xy_command", "publish_topic": "xy_state_topic", "values": []}, {"name": "xy_state_topic", "abbreviation": "xy_stat_t", "topic_type": "publish", "default_value": "~xy_state", "values": []}], "templates": [{"name": "brightness_value_template", "abbreviation": "bri_val_tpl", "default_value": ""}, {"name": "color_temp_command_template", "abbreviation": "clr_temp_cmd_tpl", "default_value": ""}, {"name": "color_temp_template", "abbreviation": "clr_temp_tpl", "default_value": ""}, {"name": "color_temp_value_template", "abbreviation": "clr_temp_val_tpl", "default_value": ""}, {"name": "effect_template", "abbreviation": "fx_tpl", "default_value": ""}, {"name": "effect_value_template", "abbreviation": "fx_val_tpl", "default_value": ""}, {"name": "hs_value_template", "abbreviation": "hs_val_tpl", "default_value": ""}, {"name": "json_attributes_template", "abbreviation": "json_attr_tpl", "default_value": ""}, {"name": "rgb_command_template", "abbreviation": "rgb_cmd_tpl", "default_value": ""}, {"name": "rgb_value_template", "abbreviation": "rgb_val_tpl", "default_value": ""}, {"name": "state_template", "abbreviation": "stat_tpl", "default_value": ""}, {"name": "state_value_template", "abbreviation": "stat_val_tpl", "default_value": ""}, {"name": "value_template", "abbreviation": "val_tpl", "default_value": ""}, {"name": "white_value_template", "abbreviation": "whit_val_tpl", "default_value": ""}]} True
  9. 2020-09-10 14:28:16,548 DEBUG [paho.mqtt.client] Sending PUBLISH (d0, q0, r1, m5), 'b'tuyagateway/config/homeassistant/light'', ... (5483 bytes)
  10. 2020-09-10 14:28:16,603 DEBUG [mqtt.mqtt] Publishing tuyagateway/config/homeassistant/sensor {"values": [{"name": "device", "abbreviation": "dev", "type_value": "string", "default_value": ""}, {"name": "device_class", "abbreviation": "dev_cla", "type_value": "string", "default_value": ""}, {"name": "force_update", "abbreviation": "frc_upd", "type_value": "bool", "default_value": false}, {"name": "icon", "abbreviation": "ic", "type_value": "string", "default_value": "mdi:light-switch"}, {"name": "unique_id", "abbreviation": "uniq_id", "type_value": "string", "default_value": ""}, {"name": "unit_of_measurement", "abbreviation": "unit_of_meas", "type_value": "string", "default_value": ""}, {"name": "qos", "abbreviation": "qos", "type_value": "int", "default_value": 0}, {"name": "name", "abbreviation": "name", "type_value": "string", "default_value": "0"}, {"name": "expire_after", "abbreviation": "exp_aft", "type_value": "int", "default_value": 0}], "topics": [{"name": "availability_topic", "abbreviation": "avty_t", "topic_type": "publish", "default_value": "~availability", "values": [{"name": "payload_available", "abbreviation": "pl_avail", "type_value": "string", "default_value": "online", "tuya_value": true}, {"name": "payload_not_available", "abbreviation": "pl_not_avail", "type_value": "string", "default_value": "offline", "tuya_value": false}]}, {"name": "json_attributes_topic", "abbreviation": "json_attr_t", "topic_type": "publish", "default_value": "~attributes", "values": []}, {"name": "state_topic", "abbreviation": "stat_t", "topic_type": "publish", "default_value": "~state", "values": [{"name": "state_off", "abbreviation": "stat_off", "type_value": "string", "default_value": "OFF", "tuya_value": false}, {"name": "state_on", "abbreviation": "stat_on", "type_value": "string", "default_value": "ON", "tuya_value": true}]}], "templates": [{"name": "json_attributes_template", "abbreviation": "json_attr_tpl", "default_value": ""}, {"name": "value_template", "abbreviation": "val_tpl", "default_value": ""}]} True
  11. 2020-09-10 14:28:16,605 DEBUG [paho.mqtt.client] Sending PUBLISH (d0, q0, r1, m6), 'b'tuyagateway/config/homeassistant/sensor'', ... (1948 bytes)
  12. 2020-09-10 14:28:16,630 DEBUG [mqtt.mqtt] Publishing tuyagateway/config/homeassistant/vacuum {"values": [], "topics": [], "templates": []} True
  13. 2020-09-10 14:28:16,631 DEBUG [paho.mqtt.client] Sending PUBLISH (d0, q0, r1, m7), 'b'tuyagateway/config/homeassistant/vacuum'', ... (45 bytes)
  14. 2020-09-10 14:28:16,694 DEBUG [mqtt.mqtt] Publishing tuyagateway/config/homeassistant/lock {"values": [], "topics": [], "templates": []} True
  15. 2020-09-10 14:28:16,696 DEBUG [paho.mqtt.client] Sending PUBLISH (d0, q0, r1, m8), 'b'tuyagateway/config/homeassistant/lock'', ... (45 bytes)
  16. 2020-09-10 14:28:16,980 DEBUG [mqtt.mqtt] Publishing tuyagateway/config/homeassistant/climate {"values": [{"name": "device", "abbreviation": "dev", "type_value": "string", "default_value": ""}, {"name": "device_class", "abbreviation": "dev_cla", "type_value": "string", "default_value": ""}, {"name": "initial", "abbreviation": "init", "type_value": "string", "default_value": ""}, {"name": "retain", "abbreviation": "ret", "type_value": "bool", "default_value": false}, {"name": "send_if_off", "abbreviation": "send_if_off", "type_value": "string", "default_value": ""}, {"name": "qos", "abbreviation": "qos", "type_value": "int", "default_value": 0}, {"name": "name", "abbreviation": "name", "type_value": "string", "default_value": "0"}], "topics": [{"name": "action_topic", "abbreviation": "act_t", "topic_type": "publish", "default_value": "~action", "values": [{"name": "code_arm_required", "abbreviation": "cod_arm_req", "type_value": "string", "default_value": "", "tuya_value": null}, {"name": "code_disarm_required", "abbreviation": "cod_dis_req", "type_value": "string", "default_value": "", "tuya_value": null}, {"name": "fan_speed_list", "abbreviation": "fanspd_lst", "type_value": "string", "default_value": "", "tuya_value": null}, {"name": "expire_after", "abbreviation": "exp_aft", "type_value": "int", "default_value": 0, "tuya_value": null}, {"name": "max_temp", "abbreviation": "max_temp", "type_value": "string", "default_value": "", "tuya_value": null}, {"name": "min_temp", "abbreviation": "min_temp", "type_value": "string", "default_value": "", "tuya_value": null}, {"name": "off_delay", "abbreviation": "off_dly", "type_value": "string", "default_value": "", "tuya_value": null}, {"name": "payload", "abbreviation": "pl", "type_value": "string", "default_value": "", "tuya_value": null}, {"name": "payload_arm_away", "abbreviation": "pl_arm_away", "type_value": "string", "default_value": "", "tuya_value": null}, {"name": "payload_arm_home", "abbreviation": "pl_arm_home", "type_value": "string", "default_value": "", "tuya_value": null}, {"name": "payload_arm_custom_bypass", "abbreviation": "pl_arm_custom_b", "type_value": "string", "default_value": "", "tuya_value": null}, {"name": "payload_arm_night", "abbreviation": "pl_arm_nite", "type_value": "string", "default_value": "", "tuya_value": null}, {"name": "payload_clean_spot", "abbreviation": "pl_cln_sp", "type_value": "string", "default_value": "", "tuya_value": null}, {"name": "payload_close", "abbreviation": "pl_cls", "type_value": "string", "default_value": "", "tuya_value": null}, {"name": "payload_disarm", "abbreviation": "pl_disarm", "type_value": "string", "default_value": "", "tuya_value": null}, {"name": "payload_high_speed", "abbreviation": "pl_hi_spd", "type_value": "string", "default_value": "", "tuya_value": null}, {"name": "payload_home", "abbreviation": "pl_home", "type_value": "string", "default_value": "", "tuya_value": null}, {"name": "payload_lock", "abbreviation": "pl_lock", "type_value": "string", "default_value": "", "tuya_value": null}, {"name": "payload_locate", "abbreviation": "pl_loc", "type_value": "string", "default_value": "", "tuya_value": null}, {"name": "payload_low_speed", "abbreviation": "pl_lo_spd", "type_value": "string", "default_value": "", "tuya_value": null}, {"name": "payload_medium_speed", "abbreviation": "pl_med_spd", "type_value": "string", "default_value": "", "tuya_value": null}, {"name": "payload_not_home", "abbreviation": "pl_not_home", "type_value": "string", "default_value": "", "tuya_value": null}, {"name": "payload_off_speed", "abbreviation": "pl_off_spd", "type_value": "string", "default_value": "", "tuya_value": null}, {"name": "payload_open", "abbreviation": "pl_open", "type_value": "string", "default_value": "", "tuya_value": null}, {"name": "payload_oscillation_off", "abbreviation": "pl_osc_off", "type_value": "string", "default_value": "", "tuya_value": null}, {"name": "payload_oscillation_on", "abbreviation": "pl_osc_on", "type_value": "string", "default_value": "", "tuya_value": null}, {"name": "payload_pause", "abbreviation": "pl_paus", "type_value": "string", "default_value": "", "tuya_value": null}, {"name": "payload_stop", "abbreviation": "pl_stop", "type_value": "string", "default_value": "", "tuya_value": null}, {"name": "payload_start", "abbreviation": "pl_strt", "type_value": "string", "default_value": "", "tuya_value": null}, {"name": "payload_start_pause", "abbreviation": "pl_stpa", "type_value": "string", "default_value": "", "tuya_value": null}, {"name": "payload_return_to_base", "abbreviation": "pl_ret", "type_value": "string", "default_value": "", "tuya_value": null}, {"name": "payload_turn_off", "abbreviation": "pl_toff", "type_value": "string", "default_value": "", "tuya_value": null}, {"name": "payload_turn_on", "abbreviation": "pl_ton", "type_value": "string", "default_value": "", "tuya_value": null}, {"name": "payload_unlock", "abbreviation": "pl_unlk", "type_value": "string", "default_value": "", "tuya_value": null}, {"name": "position_closed", "abbreviation": "pos_clsd", "type_value": "string", "default_value": "", "tuya_value": null}, {"name": "position_open", "abbreviation": "pos_open", "type_value": "string", "default_value": "", "tuya_value": null}, {"name": "speeds", "abbreviation": "spds", "type_value": "string", "default_value": "", "tuya_value": null}, {"name": "state_closed", "abbreviation": "stat_clsd", "type_value": "string", "default_value": "", "tuya_value": null}, {"name": "state_closing", "abbreviation": "stat_closing", "type_value": "string", "default_value": "", "tuya_value": null}, {"name": "state_open", "abbreviation": "stat_open", "type_value": "string", "default_value": "", "tuya_value": null}, {"name": "state_opening", "abbreviation": "stat_opening", "type_value": "string", "default_value": "", "tuya_value": null}, {"name": "state_locked", "abbreviation": "stat_locked", "type_value": "string", "default_value": "", "tuya_value": null}, {"name": "state_unlocked", "abbreviation": "stat_unlocked", "type_value": "string", "default_value": "", "tuya_value": null}, {"name": "tilt_closed_value", "abbreviation": "tilt_clsd_val", "type_value": "string", "default_value": "", "tuya_value": null}, {"name": "tilt_invert_state", "abbreviation": "tilt_inv_stat", "type_value": "string", "default_value": "", "tuya_value": null}, {"name": "tilt_max", "abbreviation": "tilt_max", "type_value": "string", "default_value": "", "tuya_value": null}, {"name": "tilt_min", "abbreviation": "tilt_min", "type_value": "string", "default_value": "", "tuya_value": null}, {"name": "tilt_opened_value", "abbreviation": "tilt_opnd_val", "type_value": "string", "default_value": "", "tuya_value": null}, {"name": "tilt_optimistic", "abbreviation": "tilt_opt", "type_value": "string", "default_value": "", "tuya_value": null}]}, {"name": "aux_command_topic", "abbreviation": "aux_cmd_t", "topic_type": "subscribe", "default_value": "~aux_command", "publish_topic": "aux_state_topic", "values": []}, {"name": "aux_state_topic", "abbreviation": "aux_stat_t", "topic_type": "publish", "default_value": "~aux_state", "values": []}, {"name": "availability_topic", "abbreviation": "avty_t", "topic_type": "publish", "default_value": "~availability", "values": [{"name": "payload_available", "abbreviation": "pl_avail", "type_value": "string", "default_value": "online", "tuya_value": true}, {"name": "payload_not_available", "abbreviation": "pl_not_avail", "type_value": "string", "default_value": "offline", "tuya_value": false}]}, {"name": "away_mode_command_topic", "abbreviation": "away_mode_cmd_t", "topic_type": "subscribe", "default_value": "~away_mode_command", "publish_topic": "away_mode_state_topic", "values": []}, {"name": "away_mode_state_topic", "abbreviation": "away_mode_stat_t", "topic_type": "publish", "default_value": "~away_mode_state", "values": []}, {"name": "current_temperature_topic", "abbreviation": "curr_temp_t", "topic_type": "publish", "default_value": "~current_temperature", "values": []}, {"name": "fan_mode_command_topic", "abbreviation": "fan_mode_cmd_t", "topic_type": "subscribe", "default_value": "~fan_mode_command", "publish_topic": "fan_mode_state_topic", "values": []}, {"name": "fan_mode_state_topic", "abbreviation": "fan_mode_stat_t", "topic_type": "publish", "default_value": "~fan_mode_state", "values": []}, {"name": "hold_command_topic", "abbreviation": "hold_cmd_t", "topic_type": "subscribe", "default_value": "~hold_command", "publish_topic": "hold_state_topic", "values": []}, {"name": "hold_state_topic", "abbreviation": "hold_stat_t", "topic_type": "publish", "default_value": "~hold_state", "values": []}, {"name": "json_attributes_topic", "abbreviation": "json_attr_t", "topic_type": "publish", "default_value": "~attributes", "values": []}, {"name": "mode_command_topic", "abbreviation": "mode_cmd_t", "topic_type": "subscribe", "default_value": "~mode_command", "publish_topic": "mode_state_topic", "values": []}, {"name": "mode_state_topic", "abbreviation": "mode_stat_t", "topic_type": "publish", "default_value": "~mode_state", "values": []}, {"name": "power_command_topic", "abbreviation": "pow_cmd_t", "topic_type": "subscribe", "default_value": "~power_command", "publish_topic": "power_state_topic", "values": []}, {"name": "power_state_topic", "abbreviation": "pow_stat_t", "topic_type": "publish", "default_value": "~power_state", "values": []}, {"name": "swing_mode_command_topic", "abbreviation": "swing_mode_cmd_t", "topic_type": "subscribe", "default_value": "~swing_mode_command", "publish_topic": "swing_mode_state_topic", "values": []}, {"name": "swing_mode_state_topic", "abbreviation": "swing_mode_stat_t", "topic_type": "publish", "default_value": "~swing_mode_state", "values": []}, {"name": "temperature_command_topic", "abbreviation": "temp_cmd_t", "topic_type": "subscribe", "default_value": "~temperature_command", "publish_topic": "temperature_state_topic", "values": []}, {"name": "temperature_high_command_topic", "abbreviation": "temp_hi_cmd_t", "topic_type": "subscribe", "default_value": "~temperature_high_command", "publish_topic": "temperature_high_state_topic", "values": []}, {"name": "temperature_high_state_topic", "abbreviation": "temp_hi_stat_t", "topic_type": "publish", "default_value": "~temperature_high_state", "values": []}, {"name": "temperature_low_command_topic", "abbreviation": "temp_lo_cmd_t", "topic_type": "subscribe", "default_value": "~temperature_low_command", "publish_topic": "temperature_low_state_topic", "values": []}, {"name": "temperature_low_state_topic", "abbreviation": "temp_lo_stat_t", "topic_type": "publish", "default_value": "~temperature_low_state", "values": []}, {"name": "temperature_state_topic", "abbreviation": "temp_stat_t", "topic_type": "publish", "default_value": "~temperature_state", "values": []}], "templates": [{"name": "action_template", "abbreviation": "act_tpl", "default_value": ""}, {"name": "aux_state_template", "abbreviation": "aux_stat_tpl", "default_value": ""}, {"name": "fan_mode_state_template", "abbreviation": "fan_mode_stat_tpl", "default_value": ""}, {"name": "hold_state_template", "abbreviation": "hold_stat_tpl", "default_value": ""}, {"name": "json_attributes_template", "abbreviation": "json_attr_tpl", "default_value": ""}, {"name": "power_state_template", "abbreviation": "pow_stat_tpl", "default_value": ""}, {"name": "swing_mode_state_template", "abbreviation": "swing_mode_stat_tpl", "default_value": ""}, {"name": "temperature_high_state_template", "abbreviation": "temp_hi_stat_tpl", "default_value": ""}, {"name": "temperature_low_state_template", "abbreviation": "temp_lo_stat_tpl", "default_value": ""}, {"name": "temperature_state_template", "abbreviation": "temp_stat_tpl", "default_value": ""}, {"name": "value_template", "abbreviation": "val_tpl", "default_value": ""}]} True
  17. 2020-09-10 14:28:16,982 DEBUG [paho.mqtt.client] Sending PUBLISH (d0, q0, r1, m9), 'b'tuyagateway/config/homeassistant/climate'', ... (11786 bytes)
  18. 2020-09-10 14:28:17,009 DEBUG [mqtt.mqtt] Publishing tuyagateway/config/homeassistant/fan {"values": [], "topics": [], "templates": []} True
  19. 2020-09-10 14:28:17,010 DEBUG [paho.mqtt.client] Sending PUBLISH (d0, q0, r1, m10), 'b'tuyagateway/config/homeassistant/fan'', ... (45 bytes)
  20. 2020-09-10 14:28:17,037 DEBUG [mqtt.mqtt] Publishing tuyagateway/config/homeassistant/device_automation {"values": [], "topics": [], "templates": []} True
  21. 2020-09-10 14:28:17,037 DEBUG [paho.mqtt.client] Sending PUBLISH (d0, q0, r1, m11), 'b'tuyagateway/config/homeassistant/device_automation'', ... (45 bytes)
  22. 2020-09-10 14:28:17,066 DEBUG [mqtt.mqtt] Publishing tuyagateway/config/homeassistant/cover {"values": [], "topics": [], "templates": []} True
  23. 2020-09-10 14:28:17,067 DEBUG [paho.mqtt.client] Sending PUBLISH (d0, q0, r1, m12), 'b'tuyagateway/config/homeassistant/cover'', ... (45 bytes)
  24. 2020-09-10 14:28:17,091 DEBUG [mqtt.mqtt] Publishing tuyagateway/config/homeassistant/camera {"values": [], "topics": [], "templates": []} True
  25. 2020-09-10 14:28:17,092 DEBUG [paho.mqtt.client] Sending PUBLISH (d0, q0, r1, m13), 'b'tuyagateway/config/homeassistant/camera'', ... (45 bytes)
  26. 2020-09-10 14:28:17,147 DEBUG [mqtt.mqtt] Publishing tuyagateway/config/homeassistant/binary_sensor {"values": [{"name": "device", "abbreviation": "dev", "type_value": "string", "default_value": ""}, {"name": "device_class", "abbreviation": "dev_cla", "type_value": "string", "default_value": ""}, {"name": "force_update", "abbreviation": "frc_upd", "type_value": "bool", "default_value": false}, {"name": "unique_id", "abbreviation": "uniq_id", "type_value": "string", "default_value": ""}, {"name": "qos", "abbreviation": "qos", "type_value": "int", "default_value": 0}, {"name": "name", "abbreviation": "name", "type_value": "string", "default_value": "0"}, {"name": "expire_after", "abbreviation": "exp_aft", "type_value": "int", "default_value": 0}, {"name": "off_delay", "abbreviation": "off_dly", "type_value": "int", "default_value": 0}], "topics": [{"name": "availability_topic", "abbreviation": "avty_t", "topic_type": "publish", "default_value": "~availability", "values": [{"name": "payload_available", "abbreviation": "pl_avail", "type_value": "string", "default_value": "online", "tuya_value": true}, {"name": "payload_not_available", "abbreviation": "pl_not_avail", "type_value": "string", "default_value": "offline", "tuya_value": false}]}, {"name": "json_attributes_topic", "abbreviation": "json_attr_t", "topic_type": "publish", "default_value": "~attributes", "values": []}, {"name": "state_topic", "abbreviation": "stat_t", "topic_type": "publish", "default_value": "~state", "values": [{"name": "state_off", "abbreviation": "stat_off", "type_value": "string", "default_value": "OFF", "tuya_value": false}, {"name": "state_on", "abbreviation": "stat_on", "type_value": "string", "default_value": "ON", "tuya_value": true}]}], "templates": [{"name": "state_template", "abbreviation": "stat_tpl", "default_value": ""}, {"name": "value_template", "abbreviation": "val_tpl", "default_value": ""}]} True
  27. 2020-09-10 14:28:17,148 DEBUG [paho.mqtt.client] Sending PUBLISH (d0, q0, r1, m14), 'b'tuyagateway/config/homeassistant/binary_sensor'', ... (1813 bytes)
  28. 2020-09-10 14:28:17,172 DEBUG [mqtt.mqtt] Publishing tuyagateway/config/homeassistant/alarm_control_panel {"values": [], "topics": [], "templates": []} True
  29. 2020-09-10 14:28:17,175 DEBUG [paho.mqtt.client] Sending PUBLISH (d0, q0, r1, m15), 'b'tuyagateway/config/homeassistant/alarm_control_panel'', ... (45 bytes)
  30. 2020-09-10 14:28:17,181 DEBUG [paho.mqtt.client] Received SUBACK
  31. 2020-09-10 19:58:17,204 DEBUG (Thread-1) [paho.mqtt.client] Received PUBLISH (d0, q0, r0, m0), 'tuyagateway/discovery/bf57555ad780d86beb4h8c', ... (360 bytes)
  32. 2020-09-10 19:58:17,205 INFO (Thread-1) [tuyagateway.configure] discovery message received {"name": "test", "deviceid": "bf57555ad780d86beb4h8c", "localkey": "f85f266a7008e8b6", "ip": "192.168.86.62", "ha_discovery": true, "tuya_discovery": true, "protocol": "3.3", "pref_status_cmd": 10, "dps": [{"key": 1, "name": "switch on/off", "type_value": "bool", "minimal": 0.0, "maximal": 255.0, "device_component": "switch", "device_topic": "state_topic"}]} topic tuyagateway/discovery/bf57555ad780d86beb4h8c retained 0
  33. 2020-09-10 19:58:17,207 INFO (Thread-1) [tuyagateway.configure] Stopping DeviceThread tuyagateway_bf57555ad780d86beb4h8c
  34. 2020-09-10 19:58:17,209 DEBUG (Thread-4) [tuyaface.tuyaclient] (192.168.86.62) Interrupted
  35. 2020-09-10 14:28:17,210 DEBUG [paho.mqtt.client] Received PUBLISH (d0, q0, r1, m0), 'homeassistant/switch/bf57555ad780d86beb4h8c_1/config', ... (538 bytes)
  36. 2020-09-10 14:28:17,224 DEBUG [paho.mqtt.client] Received PUBLISH (d0, q0, r0, m0), 'homeassistant/switch/bf57555ad780d86beb4h8c_1/config', ... (534 bytes)
  37. 2020-09-10 19:58:17,616 WARNING (tuyagateway_bf57555ad780d86beb4h8c) [tuyaface.tuyaclient] (192.168.86.62) No reply to status
  38. 2020-09-10 19:58:17,718 INFO (Thread-1) [tuyagateway.configure] Stopping DeviceThread tuyagateway_bf57555ad780d86beb4h8c
  39. 2020-09-10 19:58:17,721 DEBUG (tuyagateway_bf57555ad780d86beb4h8c) [asyncio] Using selector: EpollSelector
  40. 2020-09-10 19:58:17,722 DEBUG (Thread-1) [paho.mqtt.client] Received PUBLISH (d0, q0, r0, m0), 'homeassistant/switch/bf57555ad780d86beb4h8c_1/config', ... (534 bytes)
  41. 2020-09-10 19:58:17,725 DEBUG (Thread-1) [paho.mqtt.client] Received PUBLISH (d0, q0, r0, m0), 'tuyagateway/config/homeassistant/switch', ... (2348 bytes)
  42. 2020-09-10 19:58:17,728 INFO (Thread-1) [tuyagateway.configure] config message topic tuyagateway/config/homeassistant/switch retained 0
  43. 2020-09-10 19:58:17,733 DEBUG (Thread-1) [paho.mqtt.client] Received PUBLISH (d0, q0, r0, m0), 'tuyagateway/config/homeassistant/light', ... (5483 bytes)
  44. 2020-09-10 19:58:17,734 INFO (Thread-1) [tuyagateway.configure] config message topic tuyagateway/config/homeassistant/light retained 0
  45. 2020-09-10 19:58:17,736 DEBUG (Thread-6) [paho.mqtt.client] Sending CONNECT (u1, p1, wr1, wq0, wf1, c1, k60) client_id=b''
  46. 2020-09-10 19:58:17,737 DEBUG (Thread-1) [paho.mqtt.client] Received PUBLISH (d0, q0, r0, m0), 'tuyagateway/config/homeassistant/sensor', ... (1948 bytes)
  47. 2020-09-10 19:58:17,740 INFO (Thread-1) [tuyagateway.configure] config message topic tuyagateway/config/homeassistant/sensor retained 0
  48. 2020-09-10 19:58:17,738 DEBUG (Thread-7) [tuyaface.tuyaclient] (192.168.86.62) connecting
  49. 2020-09-10 19:58:17,742 DEBUG (Thread-1) [paho.mqtt.client] Received PUBLISH (d0, q0, r0, m0), 'tuyagateway/config/homeassistant/vacuum', ... (45 bytes)
  50. 2020-09-10 19:58:17,743 DEBUG (Thread-6) [paho.mqtt.client] Received CONNACK (0, 0)
  51. 2020-09-10 19:58:17,745 INFO (Thread-6) [tuyagateway.configure] MQTT Connection state: Connection successful for 192.168.86.62
  52. 2020-09-10 19:58:17,744 INFO (Thread-1) [tuyagateway.configure] config message topic tuyagateway/config/homeassistant/vacuum retained 0
  53. 2020-09-10 19:58:17,746 DEBUG (Thread-6) [paho.mqtt.client] Sending SUBSCRIBE (d0, m1) [(b'tuya/bf57555ad780d86beb4h8c/1/command', 0)]
  54. 2020-09-10 19:58:17,743 INFO (Thread-7) [tuyaface] (192.168.86.62) Connecting to 192.168.86.62
  55. 2020-09-10 19:58:17,748 DEBUG (Thread-1) [paho.mqtt.client] Received PUBLISH (d0, q0, r0, m0), 'tuyagateway/config/homeassistant/lock', ... (45 bytes)
  56. 2020-09-10 19:58:17,750 INFO (Thread-1) [tuyagateway.configure] config message topic tuyagateway/config/homeassistant/lock retained 0
  57. 2020-09-10 19:58:17,752 DEBUG (Thread-1) [paho.mqtt.client] Received PUBLISH (d0, q0, r0, m0), 'tuyagateway/config/homeassistant/climate', ... (11786 bytes)
  58. 2020-09-10 19:58:17,753 INFO (Thread-1) [tuyagateway.configure] config message topic tuyagateway/config/homeassistant/climate retained 0
  59. 2020-09-10 19:58:17,756 DEBUG (Thread-1) [paho.mqtt.client] Received PUBLISH (d0, q0, r0, m0), 'tuyagateway/config/homeassistant/fan', ... (45 bytes)
  60. 2020-09-10 19:58:17,757 DEBUG (Thread-6) [paho.mqtt.client] Received SUBACK
  61. 2020-09-10 19:58:17,757 INFO (Thread-1) [tuyagateway.configure] config message topic tuyagateway/config/homeassistant/fan retained 0
  62. 2020-09-10 19:58:17,760 DEBUG (Thread-1) [paho.mqtt.client] Received PUBLISH (d0, q0, r0, m0), 'tuyagateway/config/homeassistant/device_automation', ... (45 bytes)
  63. 2020-09-10 19:58:17,761 INFO (Thread-1) [tuyagateway.configure] config message topic tuyagateway/config/homeassistant/device_automation retained 0
  64. 2020-09-10 19:58:17,762 DEBUG (Thread-1) [paho.mqtt.client] Received PUBLISH (d0, q0, r0, m0), 'tuyagateway/config/homeassistant/cover', ... (45 bytes)
  65. 2020-09-10 19:58:17,763 INFO (Thread-1) [tuyagateway.configure] config message topic tuyagateway/config/homeassistant/cover retained 0
  66. 2020-09-10 19:58:17,765 DEBUG (Thread-1) [paho.mqtt.client] Received PUBLISH (d0, q0, r0, m0), 'tuyagateway/config/homeassistant/camera', ... (45 bytes)
  67. 2020-09-10 19:58:17,766 INFO (Thread-1) [tuyagateway.configure] config message topic tuyagateway/config/homeassistant/camera retained 0
  68. 2020-09-10 19:58:17,767 DEBUG (Thread-7) [tuyagateway.configure] ->publish 192.168.86.62/availability
  69. 2020-09-10 19:58:17,768 DEBUG (Thread-7) [paho.mqtt.client] Sending PUBLISH (d0, q0, r1, m2), 'b'tuya/bf57555ad780d86beb4h8c/availability'', ... (6 bytes)
  70. 2020-09-10 19:58:17,769 DEBUG (Thread-1) [paho.mqtt.client] Received PUBLISH (d0, q0, r0, m0), 'tuyagateway/config/homeassistant/binary_sensor', ... (1813 bytes)
  71. 2020-09-10 19:58:17,770 INFO (Thread-7) [tuyaface.tuyaclient] (192.168.86.62) connected
  72. 2020-09-10 19:58:17,770 INFO (Thread-1) [tuyagateway.configure] config message topic tuyagateway/config/homeassistant/binary_sensor retained 0
  73. 2020-09-10 19:58:17,774 DEBUG (Thread-1) [paho.mqtt.client] Received PUBLISH (d0, q0, r0, m0), 'tuyagateway/config/homeassistant/alarm_control_panel', ... (45 bytes)
  74. 2020-09-10 19:58:17,774 INFO (Thread-1) [tuyagateway.configure] config message topic tuyagateway/config/homeassistant/alarm_control_panel retained 0
  75. 2020-09-10 19:58:17,839 DEBUG (Thread-7) [tuyaface.tuyaclient] (192.168.86.62) Interrupted
  76. 2020-09-10 19:58:17,840 DEBUG (Thread-7) [tuyaface] (192.168.86.62) sending msg (seq 0): [a:DP_QUERY] payload: [None]
  77. 2020-09-10 19:58:17,889 ERROR (Thread-7) [tuyaface.tuyaclient] (192.168.86.62) Unexpected exception
  78. Traceback (most recent call last):
  79. File "/usr/lib/python3.8/site-packages/tuyaface/tuyaclient.py", line 194, in run
  80. result = command(*args)
  81. File "/usr/lib/python3.8/site-packages/tuyaface/tuyaclient.py", line 217, in _status
  82. status_reply, all_replies = _status(self.device)
  83. File "/usr/lib/python3.8/site-packages/tuyaface/__init__.py", line 268, in _status
  84. new_replies = list(reply for reply in _receive_replies(device, 1))
  85. File "/usr/lib/python3.8/site-packages/tuyaface/__init__.py", line 268, in <genexpr>
  86. new_replies = list(reply for reply in _receive_replies(device, 1))
  87. File "/usr/lib/python3.8/site-packages/tuyaface/__init__.py", line 406, in _receive_replies
  88. raise ex
  89. File "/usr/lib/python3.8/site-packages/tuyaface/__init__.py", line 401, in _receive_replies
  90. for reply in _process_raw_reply(device, data):
  91. File "/usr/lib/python3.8/site-packages/tuyaface/__init__.py", line 169, in _process_raw_reply
  92. payload = aescipher.decrypt(device["localkey"], data, False)
  93. File "/usr/lib/python3.8/site-packages/tuyaface/aescipher.py", line 22, in decrypt
  94. return _unpad(raw).decode("utf-8")
  95. UnicodeDecodeError: 'utf-8' codec can't decode byte 0xa3 in position 0: invalid start byte
  96. 2020-09-10 19:58:19,839 WARNING (tuyagateway_bf57555ad780d86beb4h8c) [tuyaface.tuyaclient] (192.168.86.62) No reply to status
  97. 2020-09-10 19:58:24,900 DEBUG (Thread-7) [tuyaface.tuyaclient] (192.168.86.62) PING
  98. 2020-09-10 19:58:24,902 DEBUG (Thread-7) [tuyaface] (192.168.86.62) sending msg (seq 1): [9:HEART_BEAT] payload: [None]
  99. 2020-09-10 19:58:24,963 DEBUG (Thread-7) [tuyaface] (192.168.86.62) received msg (seq 0): [9:HEART_BEAT] rc: [0] payload: [None]
  100. 2020-09-10 19:58:24,964 DEBUG (Thread-7) [tuyaface.tuyaclient] (192.168.86.62) PONG
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement