-
-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Description
Link
https://www.immax.eu/immax-neo-smart-indoor-socket-with-pin-type-e-2xusb-1xusb-c-zigbee-p24425/
Database entry
None
Zigbee2MQTT version
2.7.1
External definition
import * as m from 'zigbee-herdsman-converters/lib/modernExtend';
export default {
zigbeeModel: ['TS011F'],
model: 'TS011F',
vendor: '_TZ3210_xuv3icxj',
description: 'Automatically generated definition',
extend: [m.deviceEndpoints({"endpoints":{"1":1,"2":2}}), m.onOff({"powerOnBehavior":false,"endpointNames":["1","2"]}), m.electricityMeter()],
};What does/doesn't work with the external definition?
[2025-12-07 14:30:55] info: z2m:mqtt: MQTT publish: topic 'zigbee2mqtt/bridge/response/permit_join', payload '{"data":{"time":254},"status":"ok","transaction":"03olc-2"}'
[2025-12-07 14:30:58] info: zh:controller: Interview for '0xa4c138a82d0ffdfc' started
[2025-12-07 14:30:58] info: z2m: Device '0xa4c138a82d0ffdfc' joined
[2025-12-07 14:30:58] info: z2m: Starting interview of '0xa4c138a82d0ffdfc'
[2025-12-07 14:30:58] info: z2m:mqtt: MQTT publish: topic 'zigbee2mqtt/bridge/event', payload '{"data":{"friendly_name":"0xa4c138a82d0ffdfc","ieee_address":"0xa4c138a82d0ffdfc"},"type":"device_joined"}'
[2025-12-07 14:30:58] info: z2m:mqtt: MQTT publish: topic 'zigbee2mqtt/bridge/event', payload '{"data":{"friendly_name":"0xa4c138a82d0ffdfc","ieee_address":"0xa4c138a82d0ffdfc","status":"started"},"type":"device_interview"}'
[2025-12-07 14:30:58] info: z2m:mqtt: MQTT publish: topic 'zigbee2mqtt/bridge/event', payload '{"data":{"friendly_name":"0xa4c138a82d0ffdfc","ieee_address":"0xa4c138a82d0ffdfc"},"type":"device_announce"}'
[2025-12-07 14:30:58] info: zh:controller: Succesfully interviewed '0xa4c138a82d0ffdfc'
[2025-12-07 14:30:58] info: z2m: Successfully interviewed '0xa4c138a82d0ffdfc', device has successfully been paired
[2025-12-07 14:30:58] info: z2m: Device '0xa4c138a82d0ffdfc' is supported, identified as: Tuya Smart plug (with power monitoring) (TS011F_plug_1)
[2025-12-07 14:30:58] info: z2m: Configuring '0xa4c138a82d0ffdfc'
[2025-12-07 14:30:58] info: z2m:mqtt: MQTT publish: topic 'homeassistant/switch/0xa4c138a82d0ffdfc/switch/config', payload '{"availability":[{"topic":"zigbee2mqtt/bridge/state","value_template":"{{ value_json.state }}"}],"command_topic":"zigbee2mqtt/0xa4c138a82d0ffdfc/set","default_entity_id":"switch.0xa4c138a82d0ffdfc","device":{"hw_version":1,"identifiers":["zigbee2mqtt_0xa4c138a82d0ffdfc"],"manufacturer":"Tuya","model":"Smart plug (with power monitoring)","model_id":"TS011F_plug_1","name":"0xa4c138a82d0ffdfc","via_device":"zigbee2mqtt_bridge_0x00124b002c3a668f"},"name":null,"object_id":"0xa4c138a82d0ffdfc","origin":{"name":"Zigbee2MQTT","sw":"2.7.1","url":"https://www.zigbee2mqtt.io"},"payload_off":"OFF","payload_on":"ON","state_topic":"zigbee2mqtt/0xa4c138a82d0ffdfc","unique_id":"0xa4c138a82d0ffdfc_switch_zigbee2mqtt","value_template":"{{ value_json.state }}"}'
[2025-12-07 14:30:58] info: z2m:mqtt: MQTT publish: topic 'zigbee2mqtt/bridge/event', payload '{"data":{"definition":{"description":"Smart plug (with power monitoring)","exposes":[{"features":[{"access":7,"description":"On/off state of the switch","label":"State","name":"state","property":"state","type":"binary","value_off":"OFF","value_on":"ON","value_toggle":"TOGGLE"}],"type":"switch"},{"access":3,"description":"Countdown to turn device off after a certain time","label":"Countdown","name":"countdown","property":"countdown","type":"numeric","unit":"s","value_max":43200,"value_min":0,"value_step":1},{"access":7,"description":"Recover state after power outage","label":"Power outage memory","name":"power_outage_memory","property":"power_outage_memory","type":"enum","values":["on","off","restore"]},{"access":7,"category":"config","description":"LED indicator mode","label":"Indicator mode","name":"indicator_mode","property":"indicator_mode","type":"enum","values":["off","off/on","on/off","on"]},{"access":1,"description":"Instantaneous measured power","label":"Power","name":"power","property":"power","type":"numeric","unit":"W"},{"access":1,"description":"Instantaneous measured electrical current","label":"Current","name":"current","property":"current","type":"numeric","unit":"A"},{"access":1,"description":"Measured electrical potential value","label":"Voltage","name":"voltage","property":"voltage","type":"numeric","unit":"V"},{"access":1,"description":"Sum of consumed energy","label":"Energy","name":"energy","property":"energy","type":"numeric","unit":"kWh"},{"access":3,"description":"Enables/disables physical input on the device","label":"Child lock","name":"child_lock","property":"child_lock","type":"binary","value_off":"UNLOCK","value_on":"LOCK"},{"access":1,"category":"diagnostic","description":"Link quality (signal strength)","label":"Linkquality","name":"linkquality","property":"linkquality","type":"numeric","unit":"lqi","value_max":255,"value_min":0}],"model":"TS011F_plug_1","options":[{"access":2,"description":"Calibrates the power value (percentual offset), takes into effect on next report of device.","label":"Power calibration","name":"power_calibration","property":"power_calibration","type":"numeric","value_step":0.1},{"access":2,"description":"Number of digits after decimal point for power, takes into effect on next report of device. This option can only decrease the precision, not increase it.","label":"Power precision","name":"power_precision","property":"power_precision","type":"numeric","value_max":3,"value_min":0},{"access":2,"description":"Calibrates the current value (percentual offset), takes into effect on next report of device.","label":"Current calibration","name":"current_calibration","property":"current_calibration","type":"numeric","value_step":0.1},{"access":2,"description":"Number of digits after decimal point for current, takes into effect on next report of device. This option can only decrease the precision, not increase it.","label":"Current precision","name":"current_precision","property":"current_precision","type":"numeric","value_max":3,"value_min":0},{"access":2,"description":"Calibrates the voltage value (percentual offset), takes into effect on next report of device.","label":"Voltage calibration","name":"voltage_calibration","property":"voltage_calibration","type":"numeric","value_step":0.1},{"access":2,"description":"Number of digits after decimal point for voltage, takes into effect on next report of device. This option can only decrease the precision, not increase it.","label":"Voltage precision","name":"voltage_precision","property":"voltage_precision","type":"numeric","value_max":3,"value_min":0},{"access":2,"description":"Calibrates the energy value (percentual offset), takes into effect on next report of device.","label":"Energy calibration","name":"energy_calibration","property":"energy_calibration","type":"numeric","value_step":0.1},{"access":2,"description":"Number of digits after decimal point for energy, takes into effect on next report of device. This option can only decrease the precision, not increase it.","label":"Energy precision","name":"energy_precision","property":"energy_precision","type":"numeric","value_max":3,"value_min":0},{"access":2,"description":"State actions will also be published as 'action' when true (default false).","label":"State action","name":"state_action","property":"state_action","type":"binary","value_off":false,"value_on":true}],"source":"native","supports_ota":true,"vendor":"Tuya"},"friendly_name":"0xa4c138a82d0ffdfc","ieee_address":"0xa4c138a82d0ffdfc","status":"successful","supported":true},"type":"device_interview"}'
[2025-12-07 14:30:58] info: z2m:mqtt: MQTT publish: topic 'homeassistant/number/0xa4c138a82d0ffdfc/countdown/config', payload '{"availability":[{"topic":"zigbee2mqtt/bridge/state","value_template":"{{ value_json.state }}"}],"command_topic":"zigbee2mqtt/0xa4c138a82d0ffdfc/set/countdown","default_entity_id":"number.0xa4c138a82d0ffdfc_countdown","device":{"hw_version":1,"identifiers":["zigbee2mqtt_0xa4c138a82d0ffdfc"],"manufacturer":"Tuya","model":"Smart plug (with power monitoring)","model_id":"TS011F_plug_1","name":"0xa4c138a82d0ffdfc","via_device":"zigbee2mqtt_bridge_0x00124b002c3a668f"},"max":43200,"min":0,"name":"Countdown","object_id":"0xa4c138a82d0ffdfc_countdown","origin":{"name":"Zigbee2MQTT","sw":"2.7.1","url":"https://www.zigbee2mqtt.io"},"state_topic":"zigbee2mqtt/0xa4c138a82d0ffdfc","step":1,"unique_id":"0xa4c138a82d0ffdfc_countdown_zigbee2mqtt","unit_of_measurement":"s","value_template":"{{ value_json.countdown }}"}'
[2025-12-07 14:30:58] info: z2m:mqtt: MQTT publish: topic 'homeassistant/select/0xa4c138a82d0ffdfc/power_outage_memory/config', payload '{"availability":[{"topic":"zigbee2mqtt/bridge/state","value_template":"{{ value_json.state }}"}],"command_topic":"zigbee2mqtt/0xa4c138a82d0ffdfc/set/power_outage_memory","default_entity_id":"select.0xa4c138a82d0ffdfc_power_outage_memory","device":{"hw_version":1,"identifiers":["zigbee2mqtt_0xa4c138a82d0ffdfc"],"manufacturer":"Tuya","model":"Smart plug (with power monitoring)","model_id":"TS011F_plug_1","name":"0xa4c138a82d0ffdfc","via_device":"zigbee2mqtt_bridge_0x00124b002c3a668f"},"entity_category":"config","icon":"mdi:power-settings","name":"Power outage memory","object_id":"0xa4c138a82d0ffdfc_power_outage_memory","options":["on","off","restore"],"origin":{"name":"Zigbee2MQTT","sw":"2.7.1","url":"https://www.zigbee2mqtt.io"},"state_topic":"zigbee2mqtt/0xa4c138a82d0ffdfc","unique_id":"0xa4c138a82d0ffdfc_power_outage_memory_zigbee2mqtt","value_template":"{{ value_json.power_outage_memory }}"}'
[2025-12-07 14:30:59] info: z2m:mqtt: MQTT publish: topic 'homeassistant/select/0xa4c138a82d0ffdfc/indicator_mode/config', payload '{"availability":[{"topic":"zigbee2mqtt/bridge/state","value_template":"{{ value_json.state }}"}],"command_topic":"zigbee2mqtt/0xa4c138a82d0ffdfc/set/indicator_mode","default_entity_id":"select.0xa4c138a82d0ffdfc_indicator_mode","device":{"hw_version":1,"identifiers":["zigbee2mqtt_0xa4c138a82d0ffdfc"],"manufacturer":"Tuya","model":"Smart plug (with power monitoring)","model_id":"TS011F_plug_1","name":"0xa4c138a82d0ffdfc","via_device":"zigbee2mqtt_bridge_0x00124b002c3a668f"},"entity_category":"config","name":"Indicator mode","object_id":"0xa4c138a82d0ffdfc_indicator_mode","options":["off","off/on","on/off","on"],"origin":{"name":"Zigbee2MQTT","sw":"2.7.1","url":"https://www.zigbee2mqtt.io"},"state_topic":"zigbee2mqtt/0xa4c138a82d0ffdfc","unique_id":"0xa4c138a82d0ffdfc_indicator_mode_zigbee2mqtt","value_template":"{{ value_json.indicator_mode }}"}'
[2025-12-07 14:30:59] info: z2m:mqtt: MQTT publish: topic 'homeassistant/sensor/0xa4c138a82d0ffdfc/power/config', payload '{"availability":[{"topic":"zigbee2mqtt/bridge/state","value_template":"{{ value_json.state }}"}],"default_entity_id":"sensor.0xa4c138a82d0ffdfc_power","device":{"hw_version":1,"identifiers":["zigbee2mqtt_0xa4c138a82d0ffdfc"],"manufacturer":"Tuya","model":"Smart plug (with power monitoring)","model_id":"TS011F_plug_1","name":"0xa4c138a82d0ffdfc","via_device":"zigbee2mqtt_bridge_0x00124b002c3a668f"},"device_class":"power","enabled_by_default":true,"object_id":"0xa4c138a82d0ffdfc_power","origin":{"name":"Zigbee2MQTT","sw":"2.7.1","url":"https://www.zigbee2mqtt.io"},"state_class":"measurement","state_topic":"zigbee2mqtt/0xa4c138a82d0ffdfc","unique_id":"0xa4c138a82d0ffdfc_power_zigbee2mqtt","unit_of_measurement":"W","value_template":"{{ value_json.power }}"}'
[2025-12-07 14:30:59] info: z2m:mqtt: MQTT publish: topic 'homeassistant/sensor/0xa4c138a82d0ffdfc/current/config', payload '{"availability":[{"topic":"zigbee2mqtt/bridge/state","value_template":"{{ value_json.state }}"}],"default_entity_id":"sensor.0xa4c138a82d0ffdfc_current","device":{"hw_version":1,"identifiers":["zigbee2mqtt_0xa4c138a82d0ffdfc"],"manufacturer":"Tuya","model":"Smart plug (with power monitoring)","model_id":"TS011F_plug_1","name":"0xa4c138a82d0ffdfc","via_device":"zigbee2mqtt_bridge_0x00124b002c3a668f"},"device_class":"current","enabled_by_default":true,"object_id":"0xa4c138a82d0ffdfc_current","origin":{"name":"Zigbee2MQTT","sw":"2.7.1","url":"https://www.zigbee2mqtt.io"},"state_class":"measurement","state_topic":"zigbee2mqtt/0xa4c138a82d0ffdfc","unique_id":"0xa4c138a82d0ffdfc_current_zigbee2mqtt","unit_of_measurement":"A","value_template":"{{ value_json.current }}"}'
[2025-12-07 14:30:59] info: z2m:mqtt: MQTT publish: topic 'homeassistant/sensor/0xa4c138a82d0ffdfc/voltage/config', payload '{"availability":[{"topic":"zigbee2mqtt/bridge/state","value_template":"{{ value_json.state }}"}],"default_entity_id":"sensor.0xa4c138a82d0ffdfc_voltage","device":{"hw_version":1,"identifiers":["zigbee2mqtt_0xa4c138a82d0ffdfc"],"manufacturer":"Tuya","model":"Smart plug (with power monitoring)","model_id":"TS011F_plug_1","name":"0xa4c138a82d0ffdfc","via_device":"zigbee2mqtt_bridge_0x00124b002c3a668f"},"device_class":"voltage","enabled_by_default":true,"object_id":"0xa4c138a82d0ffdfc_voltage","origin":{"name":"Zigbee2MQTT","sw":"2.7.1","url":"https://www.zigbee2mqtt.io"},"state_class":"measurement","state_topic":"zigbee2mqtt/0xa4c138a82d0ffdfc","unique_id":"0xa4c138a82d0ffdfc_voltage_zigbee2mqtt","unit_of_measurement":"V","value_template":"{{ value_json.voltage }}"}'
[2025-12-07 14:30:59] info: z2m:mqtt: MQTT publish: topic 'homeassistant/sensor/0xa4c138a82d0ffdfc/energy/config', payload '{"availability":[{"topic":"zigbee2mqtt/bridge/state","value_template":"{{ value_json.state }}"}],"default_entity_id":"sensor.0xa4c138a82d0ffdfc_energy","device":{"hw_version":1,"identifiers":["zigbee2mqtt_0xa4c138a82d0ffdfc"],"manufacturer":"Tuya","model":"Smart plug (with power monitoring)","model_id":"TS011F_plug_1","name":"0xa4c138a82d0ffdfc","via_device":"zigbee2mqtt_bridge_0x00124b002c3a668f"},"device_class":"energy","enabled_by_default":true,"object_id":"0xa4c138a82d0ffdfc_energy","origin":{"name":"Zigbee2MQTT","sw":"2.7.1","url":"https://www.zigbee2mqtt.io"},"state_class":"total_increasing","state_topic":"zigbee2mqtt/0xa4c138a82d0ffdfc","unique_id":"0xa4c138a82d0ffdfc_energy_zigbee2mqtt","unit_of_measurement":"kWh","value_template":"{{ value_json.energy }}"}'
[2025-12-07 14:30:59] info: z2m:mqtt: MQTT publish: topic 'homeassistant/switch/0xa4c138a82d0ffdfc/switch_child_lock/config', payload '{"availability":[{"topic":"zigbee2mqtt/bridge/state","value_template":"{{ value_json.state }}"}],"command_topic":"zigbee2mqtt/0xa4c138a82d0ffdfc/set/child_lock","default_entity_id":"switch.0xa4c138a82d0ffdfc_child_lock","device":{"hw_version":1,"identifiers":["zigbee2mqtt_0xa4c138a82d0ffdfc"],"manufacturer":"Tuya","model":"Smart plug (with power monitoring)","model_id":"TS011F_plug_1","name":"0xa4c138a82d0ffdfc","via_device":"zigbee2mqtt_bridge_0x00124b002c3a668f"},"entity_category":"config","icon":"mdi:account-lock","name":"Child lock","object_id":"0xa4c138a82d0ffdfc_child_lock","origin":{"name":"Zigbee2MQTT","sw":"2.7.1","url":"https://www.zigbee2mqtt.io"},"payload_off":"UNLOCK","payload_on":"LOCK","state_topic":"zigbee2mqtt/0xa4c138a82d0ffdfc","unique_id":"0xa4c138a82d0ffdfc_switch_child_lock_zigbee2mqtt","value_template":"{{ value_json.child_lock }}"}'
[2025-12-07 14:30:59] info: z2m:mqtt: MQTT publish: topic 'homeassistant/sensor/0xa4c138a82d0ffdfc/linkquality/config', payload '{"availability":[{"topic":"zigbee2mqtt/bridge/state","value_template":"{{ value_json.state }}"}],"default_entity_id":"sensor.0xa4c138a82d0ffdfc_linkquality","device":{"hw_version":1,"identifiers":["zigbee2mqtt_0xa4c138a82d0ffdfc"],"manufacturer":"Tuya","model":"Smart plug (with power monitoring)","model_id":"TS011F_plug_1","name":"0xa4c138a82d0ffdfc","via_device":"zigbee2mqtt_bridge_0x00124b002c3a668f"},"enabled_by_default":false,"entity_category":"diagnostic","icon":"mdi:signal","name":"Linkquality","object_id":"0xa4c138a82d0ffdfc_linkquality","origin":{"name":"Zigbee2MQTT","sw":"2.7.1","url":"https://www.zigbee2mqtt.io"},"state_class":"measurement","state_topic":"zigbee2mqtt/0xa4c138a82d0ffdfc","unique_id":"0xa4c138a82d0ffdfc_linkquality_zigbee2mqtt","unit_of_measurement":"lqi","value_template":"{{ value_json.linkquality }}"}'
[2025-12-07 14:30:59] info: z2m:mqtt: MQTT publish: topic 'homeassistant/update/0xa4c138a82d0ffdfc/update/config', payload '{"availability":[{"topic":"zigbee2mqtt/bridge/state","value_template":"{{ value_json.state }}"}],"command_topic":"zigbee2mqtt/bridge/request/device/ota_update/update","default_entity_id":"update.0xa4c138a82d0ffdfc","device":{"hw_version":1,"identifiers":["zigbee2mqtt_0xa4c138a82d0ffdfc"],"manufacturer":"Tuya","model":"Smart plug (with power monitoring)","model_id":"TS011F_plug_1","name":"0xa4c138a82d0ffdfc","via_device":"zigbee2mqtt_bridge_0x00124b002c3a668f"},"device_class":"firmware","entity_category":"config","entity_picture":"https://github.com/Koenkk/zigbee2mqtt/raw/master/images/logo.png","name":null,"object_id":"0xa4c138a82d0ffdfc","origin":{"name":"Zigbee2MQTT","sw":"2.7.1","url":"https://www.zigbee2mqtt.io"},"payload_install":"{\"id\": "0xa4c138a82d0ffdfc"}","state_topic":"zigbee2mqtt/0xa4c138a82d0ffdfc","unique_id":"0xa4c138a82d0ffdfc_update_zigbee2mqtt","value_template":"{"latest_version":"{{ value_json['update']['latest_version'] }}","installed_version":"{{ value_json['update']['installed_version'] }}","update_percentage":{{ value_json['update'].get('progress', 'null') }},"in_progress":{{ (value_json['update']['state'] == 'updating')|lower }}}"}'
[2025-12-07 14:30:59] info: z2m: Successfully configured '0xa4c138a82d0ffdfc'
[2025-12-07 14:31:03] info: z2m:mqtt: MQTT publish: topic 'zigbee2mqtt/0xa4c138a82d0ffdfc', payload '{"child_lock":null,"countdown":null,"current":null,"energy":0,"indicator_mode":null,"linkquality":183,"power":null,"power_outage_memory":null,"state":null,"update":{"installed_version":-1,"latest_version":-1,"state":null},"voltage":null}'
[2025-12-07 14:31:03] info: z2m:mqtt: MQTT publish: topic 'zigbee2mqtt/0xa4c138a82d0ffdfc', payload '{"child_lock":null,"countdown":null,"current":null,"energy":0,"indicator_mode":null,"linkquality":183,"power":null,"power_outage_memory":null,"state":null,"update":{"installed_version":-1,"latest_version":-1,"state":null},"voltage":233}'
[2025-12-07 14:31:04] info: z2m:mqtt: MQTT publish: topic 'zigbee2mqtt/0xa4c138a82d0ffdfc', payload '{"child_lock":null,"countdown":null,"current":null,"energy":0,"indicator_mode":null,"linkquality":180,"power":null,"power_outage_memory":null,"state":null,"update":{"installed_version":-1,"latest_version":-1,"state":null},"voltage":233}'
Notes
Wrong indexing