Skip to content

Add endpoint capability to lock type #13227

Add endpoint capability to lock type

Add endpoint capability to lock type #13227

Triggered via pull request January 2, 2025 16:30
Status Failure
Total duration 1m 56s
Artifacts

ci.yml

on: pull_request
Matrix: tests
Fit to window
Zoom out
Zoom in

Annotations

23 errors and 4 warnings
test/extensions/homeassistant.test.ts > Extension: HomeAssistant > Should discover devices and groups: test/extensions/homeassistant.test.ts#L450
AssertionError: expected "spy" to be called with arguments: [ …(3) ] Received: 1st spy call: Array [ - "homeassistant/switch/0x0017880104e45563/switch_relay/config", - "{\"availability\":[{\"topic\":\"zigbee2mqtt/bridge/state\",\"value_template\":\"{{ value_json.state }}\"}],\"command_topic\":\"zigbee2mqtt/garage_door_lock/relay/set\",\"device\":{\"identifiers\":[\"zigbee2mqtt_0x0017880104e45563\"],\"manufacturer\":\"Custom devices (DiY)\",\"model\":\"Garage door with lock (GADOLOCK)\",\"name\":\"garage_door_lock\",\"via_device\":\"zigbee2mqtt_bridge_0x00124b00120144ae\"},\"name\":\"Relay\",\"object_id\":\"garage_door_lock_relay\",\"origin\":{\"name\":\"Zigbee2MQTT\",\"sw\":\"1.42.0-dev\",\"url\":\"https://www.zigbee2mqtt.io\"},\"payload_off\":\"OFF\",\"payload_on\":\"ON\",\"state_topic\":\"zigbee2mqtt/garage_door_lock\",\"unique_id\":\"0x0017880104e45563_switch_relay_zigbee2mqtt\",\"value_template\":\"{{ value_json.state_relay }}\"}", + "homeassistant/binary_sensor/1221051039810110150109113116116_0x00124b00120144ae/connection_state/config", + "{\"device\":{\"hw_version\":\"z-Stack 20190425\",\"identifiers\":[\"zigbee2mqtt_bridge_0x00124b00120144ae\"],\"manufacturer\":\"Zigbee2MQTT\",\"model\":\"Bridge\",\"name\":\"Zigbee2MQTT Bridge\",\"sw_version\":\"1.42.0-dev\"},\"device_class\":\"connectivity\",\"entity_category\":\"diagnostic\",\"name\":\"Connection state\",\"object_id\":\"zigbee2mqtt_bridge_connection_state\",\"origin\":{\"name\":\"Zigbee2MQTT\",\"sw\":\"1.42.0-dev\",\"url\":\"https://www.zigbee2mqtt.io\"},\"payload_off\":\"offline\",\"payload_on\":\"online\",\"state_topic\":\"zigbee2mqtt/bridge/state\",\"unique_id\":\"bridge_0x00124b00120144ae_connection_state_zigbee2mqtt\",\"value_template\":\"{{ value_json.state }}\"}", Object { "qos": 1, "retain": true, }, ] 2nd spy call: Array [ - "homeassistant/switch/0x0017880104e45563/switch_relay/config", - "{\"availability\":[{\"topic\":\"zigbee2mqtt/bridge/state\",\"value_template\":\"{{ value_json.state }}\"}],\"command_topic\":\"zigbee2mqtt/garage_door_lock/relay/set\",\"device\":{\"identifiers\":[\"zigbee2mqtt_0x0017880104e45563\"],\"manufacturer\":\"Custom devices (DiY)\",\"model\":\"Garage door with lock (GADOLOCK)\",\"name\":\"garage_door_lock\",\"via_device\":\"zigbee2mqtt_bridge_0x00124b00120144ae\"},\"name\":\"Relay\",\"object_id\":\"garage_door_lock_relay\",\"origin\":{\"name\":\"Zigbee2MQTT\",\"sw\":\"1.42.0-dev\",\"url\":\"https://www.zigbee2mqtt.io\"},\"payload_off\":\"OFF\",\"payload_on\":\"ON\",\"state_topic\":\"zigbee2mqtt/garage_door_lock\",\"unique_id\":\"0x0017880104e45563_switch_relay_zigbee2mqtt\",\"value_template\":\"{{ value_json.state_relay }}\"}", + "homeassistant/binary_sensor/1221051039810110150109113116116_0x00124b00120144ae/restart_required/config", + "{\"availability\":[{\"topic\":\"zigbee2mqtt/bridge/state\",\"value_template\":\"{{ value_json.state }}\"}],\"availability_mode\":\"all\",\"device\":{\"hw_version\":\"z-Stack 20190425\",\"identifiers\":[\"zigbee2mqtt_bridge_0x00124b00120144ae\"],\"manufacturer\":\"Zigbee2MQTT\",\"model\":\"Bridge\",\"name\":\"Zigbee2MQTT Bridge\",\"sw_version\":\"1.42.0-dev\"},\"device_class\":\"problem\",\"enabled_by_default\":false,\"entity_category\":\"diagnostic\",\"name\":\"Restart required\",\"object_id\":\"zigbee2mqtt_bridge_restart_required\",\"origin\":{\"name\":\"Zigbee2MQTT\",\"sw\":\"1.42.0-dev\",\"url\":\"https://www.zigbee2mqtt.io\"},\"payload_off\":false,\"payload_on\":true,\"state_topic\":\"zigbee2mqtt/bridge/info\",\"unique_id\":\"bridge_0x00124b00120144ae_restart_required_zigbee2mqtt\",\"value_template\":\"{{ value_json.restart_required }}\"}", Object { "qos": 1, "retain": true, }, ] 3rd spy call: Array [ - "homeassistant/switch/0x0017880104e45563/switch_relay/config", - "{\"availability\":[{\"topic\":\"zigbee2mqtt/bridge/state\",\"value_template\":\"{{ value_json.state }}\"}],\"command_topic\":\"zigbee2mqtt/garage_door_lock/relay/set\",\"device\":{\"identifiers\":[\"zigbee2mqtt_0x0017880104e45563\"],\"manufact
tests (macos-latest, 18)
Process completed with exit code 1.
test/extensions/homeassistant.test.ts > Extension: HomeAssistant > Should discover devices and groups: test/extensions/homeassistant.test.ts#L450
AssertionError: expected "spy" to be called with arguments: [ …(3) ] Received: 1st spy call: Array [ - "homeassistant/switch/0x0017880104e45563/switch_relay/config", - "{\"availability\":[{\"topic\":\"zigbee2mqtt/bridge/state\",\"value_template\":\"{{ value_json.state }}\"}],\"command_topic\":\"zigbee2mqtt/garage_door_lock/relay/set\",\"device\":{\"identifiers\":[\"zigbee2mqtt_0x0017880104e45563\"],\"manufacturer\":\"Custom devices (DiY)\",\"model\":\"Garage door with lock (GADOLOCK)\",\"name\":\"garage_door_lock\",\"via_device\":\"zigbee2mqtt_bridge_0x00124b00120144ae\"},\"name\":\"Relay\",\"object_id\":\"garage_door_lock_relay\",\"origin\":{\"name\":\"Zigbee2MQTT\",\"sw\":\"1.42.0-dev\",\"url\":\"https://www.zigbee2mqtt.io\"},\"payload_off\":\"OFF\",\"payload_on\":\"ON\",\"state_topic\":\"zigbee2mqtt/garage_door_lock\",\"unique_id\":\"0x0017880104e45563_switch_relay_zigbee2mqtt\",\"value_template\":\"{{ value_json.state_relay }}\"}", + "homeassistant/binary_sensor/1221051039810110150109113116116_0x00124b00120144ae/connection_state/config", + "{\"device\":{\"hw_version\":\"z-Stack 20190425\",\"identifiers\":[\"zigbee2mqtt_bridge_0x00124b00120144ae\"],\"manufacturer\":\"Zigbee2MQTT\",\"model\":\"Bridge\",\"name\":\"Zigbee2MQTT Bridge\",\"sw_version\":\"1.42.0-dev\"},\"device_class\":\"connectivity\",\"entity_category\":\"diagnostic\",\"name\":\"Connection state\",\"object_id\":\"zigbee2mqtt_bridge_connection_state\",\"origin\":{\"name\":\"Zigbee2MQTT\",\"sw\":\"1.42.0-dev\",\"url\":\"https://www.zigbee2mqtt.io\"},\"payload_off\":\"offline\",\"payload_on\":\"online\",\"state_topic\":\"zigbee2mqtt/bridge/state\",\"unique_id\":\"bridge_0x00124b00120144ae_connection_state_zigbee2mqtt\",\"value_template\":\"{{ value_json.state }}\"}", Object { "qos": 1, "retain": true, }, ] 2nd spy call: Array [ - "homeassistant/switch/0x0017880104e45563/switch_relay/config", - "{\"availability\":[{\"topic\":\"zigbee2mqtt/bridge/state\",\"value_template\":\"{{ value_json.state }}\"}],\"command_topic\":\"zigbee2mqtt/garage_door_lock/relay/set\",\"device\":{\"identifiers\":[\"zigbee2mqtt_0x0017880104e45563\"],\"manufacturer\":\"Custom devices (DiY)\",\"model\":\"Garage door with lock (GADOLOCK)\",\"name\":\"garage_door_lock\",\"via_device\":\"zigbee2mqtt_bridge_0x00124b00120144ae\"},\"name\":\"Relay\",\"object_id\":\"garage_door_lock_relay\",\"origin\":{\"name\":\"Zigbee2MQTT\",\"sw\":\"1.42.0-dev\",\"url\":\"https://www.zigbee2mqtt.io\"},\"payload_off\":\"OFF\",\"payload_on\":\"ON\",\"state_topic\":\"zigbee2mqtt/garage_door_lock\",\"unique_id\":\"0x0017880104e45563_switch_relay_zigbee2mqtt\",\"value_template\":\"{{ value_json.state_relay }}\"}", + "homeassistant/binary_sensor/1221051039810110150109113116116_0x00124b00120144ae/restart_required/config", + "{\"availability\":[{\"topic\":\"zigbee2mqtt/bridge/state\",\"value_template\":\"{{ value_json.state }}\"}],\"availability_mode\":\"all\",\"device\":{\"hw_version\":\"z-Stack 20190425\",\"identifiers\":[\"zigbee2mqtt_bridge_0x00124b00120144ae\"],\"manufacturer\":\"Zigbee2MQTT\",\"model\":\"Bridge\",\"name\":\"Zigbee2MQTT Bridge\",\"sw_version\":\"1.42.0-dev\"},\"device_class\":\"problem\",\"enabled_by_default\":false,\"entity_category\":\"diagnostic\",\"name\":\"Restart required\",\"object_id\":\"zigbee2mqtt_bridge_restart_required\",\"origin\":{\"name\":\"Zigbee2MQTT\",\"sw\":\"1.42.0-dev\",\"url\":\"https://www.zigbee2mqtt.io\"},\"payload_off\":false,\"payload_on\":true,\"state_topic\":\"zigbee2mqtt/bridge/info\",\"unique_id\":\"bridge_0x00124b00120144ae_restart_required_zigbee2mqtt\",\"value_template\":\"{{ value_json.restart_required }}\"}", Object { "qos": 1, "retain": true, }, ] 3rd spy call: Array [ - "homeassistant/switch/0x0017880104e45563/switch_relay/config", - "{\"availability\":[{\"topic\":\"zigbee2mqtt/bridge/state\",\"value_template\":\"{{ value_json.state }}\"}],\"command_topic\":\"zigbee2mqtt/garage_door_lock/relay/set\",\"device\":{\"identifiers\":[\"zigbee2mqtt_0x0017880104e45563\"],\"manufact
tests (macos-latest, 20)
Process completed with exit code 1.
test/extensions/homeassistant.test.ts > Extension: HomeAssistant > Should discover devices and groups: test/extensions/homeassistant.test.ts#L450
AssertionError: expected "spy" to be called with arguments: [ …(3) ] Received: 1st spy call: Array [ - "homeassistant/switch/0x0017880104e45563/switch_relay/config", - "{\"availability\":[{\"topic\":\"zigbee2mqtt/bridge/state\",\"value_template\":\"{{ value_json.state }}\"}],\"command_topic\":\"zigbee2mqtt/garage_door_lock/relay/set\",\"device\":{\"identifiers\":[\"zigbee2mqtt_0x0017880104e45563\"],\"manufacturer\":\"Custom devices (DiY)\",\"model\":\"Garage door with lock (GADOLOCK)\",\"name\":\"garage_door_lock\",\"via_device\":\"zigbee2mqtt_bridge_0x00124b00120144ae\"},\"name\":\"Relay\",\"object_id\":\"garage_door_lock_relay\",\"origin\":{\"name\":\"Zigbee2MQTT\",\"sw\":\"1.42.0-dev\",\"url\":\"https://www.zigbee2mqtt.io\"},\"payload_off\":\"OFF\",\"payload_on\":\"ON\",\"state_topic\":\"zigbee2mqtt/garage_door_lock\",\"unique_id\":\"0x0017880104e45563_switch_relay_zigbee2mqtt\",\"value_template\":\"{{ value_json.state_relay }}\"}", + "homeassistant/binary_sensor/1221051039810110150109113116116_0x00124b00120144ae/connection_state/config", + "{\"device\":{\"hw_version\":\"z-Stack 20190425\",\"identifiers\":[\"zigbee2mqtt_bridge_0x00124b00120144ae\"],\"manufacturer\":\"Zigbee2MQTT\",\"model\":\"Bridge\",\"name\":\"Zigbee2MQTT Bridge\",\"sw_version\":\"1.42.0-dev\"},\"device_class\":\"connectivity\",\"entity_category\":\"diagnostic\",\"name\":\"Connection state\",\"object_id\":\"zigbee2mqtt_bridge_connection_state\",\"origin\":{\"name\":\"Zigbee2MQTT\",\"sw\":\"1.42.0-dev\",\"url\":\"https://www.zigbee2mqtt.io\"},\"payload_off\":\"offline\",\"payload_on\":\"online\",\"state_topic\":\"zigbee2mqtt/bridge/state\",\"unique_id\":\"bridge_0x00124b00120144ae_connection_state_zigbee2mqtt\",\"value_template\":\"{{ value_json.state }}\"}", Object { "qos": 1, "retain": true, }, ] 2nd spy call: Array [ - "homeassistant/switch/0x0017880104e45563/switch_relay/config", - "{\"availability\":[{\"topic\":\"zigbee2mqtt/bridge/state\",\"value_template\":\"{{ value_json.state }}\"}],\"command_topic\":\"zigbee2mqtt/garage_door_lock/relay/set\",\"device\":{\"identifiers\":[\"zigbee2mqtt_0x0017880104e45563\"],\"manufacturer\":\"Custom devices (DiY)\",\"model\":\"Garage door with lock (GADOLOCK)\",\"name\":\"garage_door_lock\",\"via_device\":\"zigbee2mqtt_bridge_0x00124b00120144ae\"},\"name\":\"Relay\",\"object_id\":\"garage_door_lock_relay\",\"origin\":{\"name\":\"Zigbee2MQTT\",\"sw\":\"1.42.0-dev\",\"url\":\"https://www.zigbee2mqtt.io\"},\"payload_off\":\"OFF\",\"payload_on\":\"ON\",\"state_topic\":\"zigbee2mqtt/garage_door_lock\",\"unique_id\":\"0x0017880104e45563_switch_relay_zigbee2mqtt\",\"value_template\":\"{{ value_json.state_relay }}\"}", + "homeassistant/binary_sensor/1221051039810110150109113116116_0x00124b00120144ae/restart_required/config", + "{\"availability\":[{\"topic\":\"zigbee2mqtt/bridge/state\",\"value_template\":\"{{ value_json.state }}\"}],\"availability_mode\":\"all\",\"device\":{\"hw_version\":\"z-Stack 20190425\",\"identifiers\":[\"zigbee2mqtt_bridge_0x00124b00120144ae\"],\"manufacturer\":\"Zigbee2MQTT\",\"model\":\"Bridge\",\"name\":\"Zigbee2MQTT Bridge\",\"sw_version\":\"1.42.0-dev\"},\"device_class\":\"problem\",\"enabled_by_default\":false,\"entity_category\":\"diagnostic\",\"name\":\"Restart required\",\"object_id\":\"zigbee2mqtt_bridge_restart_required\",\"origin\":{\"name\":\"Zigbee2MQTT\",\"sw\":\"1.42.0-dev\",\"url\":\"https://www.zigbee2mqtt.io\"},\"payload_off\":false,\"payload_on\":true,\"state_topic\":\"zigbee2mqtt/bridge/info\",\"unique_id\":\"bridge_0x00124b00120144ae_restart_required_zigbee2mqtt\",\"value_template\":\"{{ value_json.restart_required }}\"}", Object { "qos": 1, "retain": true, }, ] 3rd spy call: Array [ - "homeassistant/switch/0x0017880104e45563/switch_relay/config", - "{\"availability\":[{\"topic\":\"zigbee2mqtt/bridge/state\",\"value_template\":\"{{ value_json.state }}\"}],\"command_topic\":\"zigbee2mqtt/garage_door_lock/relay/set\",\"device\":{\"identifiers\":[\"zigbee2mqtt_0x0017880104e45563\"],\"manufact
tests (ubuntu-latest, 18)
Process completed with exit code 1.
test/extensions/bridge.test.ts > Extension: Bridge > Change options and apply - homeassistant: test/extensions/bridge.test.ts#L3791
AssertionError: expected "spy" to be called with arguments: [ …(3) ] Received: 1st spy call: Array [ - "zigbee2mqtt/bridge/response/options", - "{\"data\":{\"restart_required\":true},\"status\":\"ok\"}", + "zigbee2mqtt/bridge/devices", + "[{\"disabled\":false,\"endpoints\":{\"1\":{\"bindings\":[],\"clusters\":{\"input\":[],\"output\":[]},\"configured_reportings\":[],\"scenes\":[]}},\"friendly_name\":\"Coordinator\",\"ieee_address\":\"0x00124b00120144ae\",\"interview_completed\":false,\"interviewing\":false,\"network_address\":0,\"supported\":true,\"type\":\"Coordinator\"},{\"definition\":{\"description\":\"TRADFRI bulb E26/E27, white spectrum, globe, opal, 980 lm\",\"exposes\":[{\"features\":[{\"access\":7,\"description\":\"On/off state of this light\",\"label\":\"State\",\"name\":\"state\",\"property\":\"state\",\"type\":\"binary\",\"value_off\":\"OFF\",\"value_on\":\"ON\",\"value_toggle\":\"TOGGLE\"},{\"access\":7,\"description\":\"Brightness of this light\",\"label\":\"Brightness\",\"name\":\"brightness\",\"property\":\"brightness\",\"type\":\"numeric\",\"value_max\":254,\"value_min\":0},{\"access\":7,\"description\":\"Color temperature of this light\",\"label\":\"Color temp\",\"name\":\"color_temp\",\"presets\":[{\"description\":\"Coolest temperature supported\",\"name\":\"coolest\",\"value\":250},{\"description\":\"Cool temperature (250 mireds / 4000 Kelvin)\",\"name\":\"cool\",\"value\":250},{\"description\":\"Neutral temperature (370 mireds / 2700 Kelvin)\",\"name\":\"neutral\",\"value\":370},{\"description\":\"Warm temperature (454 mireds / 2200 Kelvin)\",\"name\":\"warm\",\"value\":454},{\"description\":\"Warmest temperature supported\",\"name\":\"warmest\",\"value\":454}],\"property\":\"color_temp\",\"type\":\"numeric\",\"unit\":\"mired\",\"value_max\":454,\"value_min\":250},{\"access\":7,\"description\":\"Color temperature after cold power on of this light\",\"label\":\"Color temp startup\",\"name\":\"color_temp_startup\",\"presets\":[{\"description\":\"Coolest temperature supported\",\"name\":\"coolest\",\"value\":250},{\"description\":\"Cool temperature (250 mireds / 4000 Kelvin)\",\"name\":\"cool\",\"value\":250},{\"description\":\"Neutral temperature (370 mireds / 2700 Kelvin)\",\"name\":\"neutral\",\"value\":370},{\"description\":\"Warm temperature (454 mireds / 2200 Kelvin)\",\"name\":\"warm\",\"value\":454},{\"description\":\"Warmest temperature supported\",\"name\":\"warmest\",\"value\":454},{\"description\":\"Restore previous color_temp on cold power on\",\"name\":\"previous\",\"value\":65535}],\"property\":\"color_temp_startup\",\"type\":\"numeric\",\"unit\":\"mired\",\"value_max\":454,\"value_min\":250},{\"access\":7,\"description\":\"Configure genLevelCtrl\",\"features\":[{\"access\":7,\"description\":\"this setting can affect the \\\"on_level\\\", \\\"current_level_startup\\\" or \\\"brightness\\\" setting\",\"label\":\"Execute if off\",\"name\":\"execute_if_off\",\"property\":\"execute_if_off\",\"type\":\"binary\",\"value_off\":false,\"value_on\":true},{\"access\":7,\"description\":\"Defines the desired startup level for a device when it is supplied with power\",\"label\":\"Current level startup\",\"name\":\"current_level_startup\",\"presets\":[{\"description\":\"Use minimum permitted value\",\"name\":\"minimum\",\"value\":\"minimum\"},{\"description\":\"Use previous value\",\"name\":\"previous\",\"value\":\"previous\"}],\"property\":\"current_level_startup\",\"type\":\"numeric\",\"value_max\":254,\"value_min\":1}],\"label\":\"Level config\",\"name\":\"level_config\",\"property\":\"level_config\",\"type\":\"composite\"}],\"type\":\"light\"},{\"access\":2,\"description\":\"Triggers an effect on the light (e.g. make light blink for a few seconds)\",\"label\":\"Effect\",\"name\":\"effect\",\"property\":\"effect\",\"type\":\"enum\",\"values\":[\"blink\",\"breathe\",\"okay\",\"channel_change\",\"finish_effect\",\"stop_effect\"]},{\"access\":7,\"category\":\"config\",\"description\":\"Controls the behavior when the device is powered on after power loss\",\"label\":\"Power-on behavior\",
test/extensions/homeassistant.test.ts > Extension: HomeAssistant > Should discover devices and groups: test/extensions/homeassistant.test.ts#L450
AssertionError: expected "spy" to be called with arguments: [ …(3) ] Received: 1st spy call: Array [ - "homeassistant/switch/0x0017880104e45563/switch_relay/config", - "{\"availability\":[{\"topic\":\"zigbee2mqtt/bridge/state\",\"value_template\":\"{{ value_json.state }}\"}],\"command_topic\":\"zigbee2mqtt/garage_door_lock/relay/set\",\"device\":{\"identifiers\":[\"zigbee2mqtt_0x0017880104e45563\"],\"manufacturer\":\"Custom devices (DiY)\",\"model\":\"Garage door with lock (GADOLOCK)\",\"name\":\"garage_door_lock\",\"via_device\":\"zigbee2mqtt_bridge_0x00124b00120144ae\"},\"name\":\"Relay\",\"object_id\":\"garage_door_lock_relay\",\"origin\":{\"name\":\"Zigbee2MQTT\",\"sw\":\"1.42.0-dev\",\"url\":\"https://www.zigbee2mqtt.io\"},\"payload_off\":\"OFF\",\"payload_on\":\"ON\",\"state_topic\":\"zigbee2mqtt/garage_door_lock\",\"unique_id\":\"0x0017880104e45563_switch_relay_zigbee2mqtt\",\"value_template\":\"{{ value_json.state_relay }}\"}", + "homeassistant/binary_sensor/1221051039810110150109113116116_0x00124b00120144ae/connection_state/config", + "{\"device\":{\"hw_version\":\"z-Stack 20190425\",\"identifiers\":[\"zigbee2mqtt_bridge_0x00124b00120144ae\"],\"manufacturer\":\"Zigbee2MQTT\",\"model\":\"Bridge\",\"name\":\"Zigbee2MQTT Bridge\",\"sw_version\":\"1.42.0-dev\"},\"device_class\":\"connectivity\",\"entity_category\":\"diagnostic\",\"name\":\"Connection state\",\"object_id\":\"zigbee2mqtt_bridge_connection_state\",\"origin\":{\"name\":\"Zigbee2MQTT\",\"sw\":\"1.42.0-dev\",\"url\":\"https://www.zigbee2mqtt.io\"},\"payload_off\":\"offline\",\"payload_on\":\"online\",\"state_topic\":\"zigbee2mqtt/bridge/state\",\"unique_id\":\"bridge_0x00124b00120144ae_connection_state_zigbee2mqtt\",\"value_template\":\"{{ value_json.state }}\"}", Object { "qos": 1, "retain": true, }, ] 2nd spy call: Array [ - "homeassistant/switch/0x0017880104e45563/switch_relay/config", - "{\"availability\":[{\"topic\":\"zigbee2mqtt/bridge/state\",\"value_template\":\"{{ value_json.state }}\"}],\"command_topic\":\"zigbee2mqtt/garage_door_lock/relay/set\",\"device\":{\"identifiers\":[\"zigbee2mqtt_0x0017880104e45563\"],\"manufacturer\":\"Custom devices (DiY)\",\"model\":\"Garage door with lock (GADOLOCK)\",\"name\":\"garage_door_lock\",\"via_device\":\"zigbee2mqtt_bridge_0x00124b00120144ae\"},\"name\":\"Relay\",\"object_id\":\"garage_door_lock_relay\",\"origin\":{\"name\":\"Zigbee2MQTT\",\"sw\":\"1.42.0-dev\",\"url\":\"https://www.zigbee2mqtt.io\"},\"payload_off\":\"OFF\",\"payload_on\":\"ON\",\"state_topic\":\"zigbee2mqtt/garage_door_lock\",\"unique_id\":\"0x0017880104e45563_switch_relay_zigbee2mqtt\",\"value_template\":\"{{ value_json.state_relay }}\"}", + "homeassistant/binary_sensor/1221051039810110150109113116116_0x00124b00120144ae/restart_required/config", + "{\"availability\":[{\"topic\":\"zigbee2mqtt/bridge/state\",\"value_template\":\"{{ value_json.state }}\"}],\"availability_mode\":\"all\",\"device\":{\"hw_version\":\"z-Stack 20190425\",\"identifiers\":[\"zigbee2mqtt_bridge_0x00124b00120144ae\"],\"manufacturer\":\"Zigbee2MQTT\",\"model\":\"Bridge\",\"name\":\"Zigbee2MQTT Bridge\",\"sw_version\":\"1.42.0-dev\"},\"device_class\":\"problem\",\"enabled_by_default\":false,\"entity_category\":\"diagnostic\",\"name\":\"Restart required\",\"object_id\":\"zigbee2mqtt_bridge_restart_required\",\"origin\":{\"name\":\"Zigbee2MQTT\",\"sw\":\"1.42.0-dev\",\"url\":\"https://www.zigbee2mqtt.io\"},\"payload_off\":false,\"payload_on\":true,\"state_topic\":\"zigbee2mqtt/bridge/info\",\"unique_id\":\"bridge_0x00124b00120144ae_restart_required_zigbee2mqtt\",\"value_template\":\"{{ value_json.restart_required }}\"}", Object { "qos": 1, "retain": true, }, ] 3rd spy call: Array [ - "homeassistant/switch/0x0017880104e45563/switch_relay/config", - "{\"availability\":[{\"topic\":\"zigbee2mqtt/bridge/state\",\"value_template\":\"{{ value_json.state }}\"}],\"command_topic\":\"zigbee2mqtt/garage_door_lock/relay/set\",\"device\":{\"identifiers\":[\"zigbee2mqtt_0x0017880104e45563\"],\"manufact
tests (ubuntu-latest, 22)
Process completed with exit code 1.
test/extensions/homeassistant.test.ts > Extension: HomeAssistant > Should discover devices and groups: test/extensions/homeassistant.test.ts#L450
AssertionError: expected "spy" to be called with arguments: [ …(3) ] Received: 1st spy call: Array [ - "homeassistant/switch/0x0017880104e45563/switch_relay/config", - "{\"availability\":[{\"topic\":\"zigbee2mqtt/bridge/state\",\"value_template\":\"{{ value_json.state }}\"}],\"command_topic\":\"zigbee2mqtt/garage_door_lock/relay/set\",\"device\":{\"identifiers\":[\"zigbee2mqtt_0x0017880104e45563\"],\"manufacturer\":\"Custom devices (DiY)\",\"model\":\"Garage door with lock (GADOLOCK)\",\"name\":\"garage_door_lock\",\"via_device\":\"zigbee2mqtt_bridge_0x00124b00120144ae\"},\"name\":\"Relay\",\"object_id\":\"garage_door_lock_relay\",\"origin\":{\"name\":\"Zigbee2MQTT\",\"sw\":\"1.42.0-dev\",\"url\":\"https://www.zigbee2mqtt.io\"},\"payload_off\":\"OFF\",\"payload_on\":\"ON\",\"state_topic\":\"zigbee2mqtt/garage_door_lock\",\"unique_id\":\"0x0017880104e45563_switch_relay_zigbee2mqtt\",\"value_template\":\"{{ value_json.state_relay }}\"}", + "homeassistant/binary_sensor/1221051039810110150109113116116_0x00124b00120144ae/connection_state/config", + "{\"device\":{\"hw_version\":\"z-Stack 20190425\",\"identifiers\":[\"zigbee2mqtt_bridge_0x00124b00120144ae\"],\"manufacturer\":\"Zigbee2MQTT\",\"model\":\"Bridge\",\"name\":\"Zigbee2MQTT Bridge\",\"sw_version\":\"1.42.0-dev\"},\"device_class\":\"connectivity\",\"entity_category\":\"diagnostic\",\"name\":\"Connection state\",\"object_id\":\"zigbee2mqtt_bridge_connection_state\",\"origin\":{\"name\":\"Zigbee2MQTT\",\"sw\":\"1.42.0-dev\",\"url\":\"https://www.zigbee2mqtt.io\"},\"payload_off\":\"offline\",\"payload_on\":\"online\",\"state_topic\":\"zigbee2mqtt/bridge/state\",\"unique_id\":\"bridge_0x00124b00120144ae_connection_state_zigbee2mqtt\",\"value_template\":\"{{ value_json.state }}\"}", Object { "qos": 1, "retain": true, }, ] 2nd spy call: Array [ - "homeassistant/switch/0x0017880104e45563/switch_relay/config", - "{\"availability\":[{\"topic\":\"zigbee2mqtt/bridge/state\",\"value_template\":\"{{ value_json.state }}\"}],\"command_topic\":\"zigbee2mqtt/garage_door_lock/relay/set\",\"device\":{\"identifiers\":[\"zigbee2mqtt_0x0017880104e45563\"],\"manufacturer\":\"Custom devices (DiY)\",\"model\":\"Garage door with lock (GADOLOCK)\",\"name\":\"garage_door_lock\",\"via_device\":\"zigbee2mqtt_bridge_0x00124b00120144ae\"},\"name\":\"Relay\",\"object_id\":\"garage_door_lock_relay\",\"origin\":{\"name\":\"Zigbee2MQTT\",\"sw\":\"1.42.0-dev\",\"url\":\"https://www.zigbee2mqtt.io\"},\"payload_off\":\"OFF\",\"payload_on\":\"ON\",\"state_topic\":\"zigbee2mqtt/garage_door_lock\",\"unique_id\":\"0x0017880104e45563_switch_relay_zigbee2mqtt\",\"value_template\":\"{{ value_json.state_relay }}\"}", + "homeassistant/binary_sensor/1221051039810110150109113116116_0x00124b00120144ae/restart_required/config", + "{\"availability\":[{\"topic\":\"zigbee2mqtt/bridge/state\",\"value_template\":\"{{ value_json.state }}\"}],\"availability_mode\":\"all\",\"device\":{\"hw_version\":\"z-Stack 20190425\",\"identifiers\":[\"zigbee2mqtt_bridge_0x00124b00120144ae\"],\"manufacturer\":\"Zigbee2MQTT\",\"model\":\"Bridge\",\"name\":\"Zigbee2MQTT Bridge\",\"sw_version\":\"1.42.0-dev\"},\"device_class\":\"problem\",\"enabled_by_default\":false,\"entity_category\":\"diagnostic\",\"name\":\"Restart required\",\"object_id\":\"zigbee2mqtt_bridge_restart_required\",\"origin\":{\"name\":\"Zigbee2MQTT\",\"sw\":\"1.42.0-dev\",\"url\":\"https://www.zigbee2mqtt.io\"},\"payload_off\":false,\"payload_on\":true,\"state_topic\":\"zigbee2mqtt/bridge/info\",\"unique_id\":\"bridge_0x00124b00120144ae_restart_required_zigbee2mqtt\",\"value_template\":\"{{ value_json.restart_required }}\"}", Object { "qos": 1, "retain": true, }, ] 3rd spy call: Array [ - "homeassistant/switch/0x0017880104e45563/switch_relay/config", - "{\"availability\":[{\"topic\":\"zigbee2mqtt/bridge/state\",\"value_template\":\"{{ value_json.state }}\"}],\"command_topic\":\"zigbee2mqtt/garage_door_lock/relay/set\",\"device\":{\"identifiers\":[\"zigbee2mqtt_0x0017880104e45563\"],\"manufact
tests (ubuntu-latest, 20)
Process completed with exit code 1.
test/extensions/homeassistant.test.ts > Extension: HomeAssistant > Should discover devices and groups: test/extensions/homeassistant.test.ts#L450
AssertionError: expected "spy" to be called with arguments: [ …(3) ] Received: 1st spy call: Array [ - "homeassistant/switch/0x0017880104e45563/switch_relay/config", - "{\"availability\":[{\"topic\":\"zigbee2mqtt/bridge/state\",\"value_template\":\"{{ value_json.state }}\"}],\"command_topic\":\"zigbee2mqtt/garage_door_lock/relay/set\",\"device\":{\"identifiers\":[\"zigbee2mqtt_0x0017880104e45563\"],\"manufacturer\":\"Custom devices (DiY)\",\"model\":\"Garage door with lock (GADOLOCK)\",\"name\":\"garage_door_lock\",\"via_device\":\"zigbee2mqtt_bridge_0x00124b00120144ae\"},\"name\":\"Relay\",\"object_id\":\"garage_door_lock_relay\",\"origin\":{\"name\":\"Zigbee2MQTT\",\"sw\":\"1.42.0-dev\",\"url\":\"https://www.zigbee2mqtt.io\"},\"payload_off\":\"OFF\",\"payload_on\":\"ON\",\"state_topic\":\"zigbee2mqtt/garage_door_lock\",\"unique_id\":\"0x0017880104e45563_switch_relay_zigbee2mqtt\",\"value_template\":\"{{ value_json.state_relay }}\"}", + "homeassistant/binary_sensor/1221051039810110150109113116116_0x00124b00120144ae/connection_state/config", + "{\"device\":{\"hw_version\":\"z-Stack 20190425\",\"identifiers\":[\"zigbee2mqtt_bridge_0x00124b00120144ae\"],\"manufacturer\":\"Zigbee2MQTT\",\"model\":\"Bridge\",\"name\":\"Zigbee2MQTT Bridge\",\"sw_version\":\"1.42.0-dev\"},\"device_class\":\"connectivity\",\"entity_category\":\"diagnostic\",\"name\":\"Connection state\",\"object_id\":\"zigbee2mqtt_bridge_connection_state\",\"origin\":{\"name\":\"Zigbee2MQTT\",\"sw\":\"1.42.0-dev\",\"url\":\"https://www.zigbee2mqtt.io\"},\"payload_off\":\"offline\",\"payload_on\":\"online\",\"state_topic\":\"zigbee2mqtt/bridge/state\",\"unique_id\":\"bridge_0x00124b00120144ae_connection_state_zigbee2mqtt\",\"value_template\":\"{{ value_json.state }}\"}", Object { "qos": 1, "retain": true, }, ] 2nd spy call: Array [ - "homeassistant/switch/0x0017880104e45563/switch_relay/config", - "{\"availability\":[{\"topic\":\"zigbee2mqtt/bridge/state\",\"value_template\":\"{{ value_json.state }}\"}],\"command_topic\":\"zigbee2mqtt/garage_door_lock/relay/set\",\"device\":{\"identifiers\":[\"zigbee2mqtt_0x0017880104e45563\"],\"manufacturer\":\"Custom devices (DiY)\",\"model\":\"Garage door with lock (GADOLOCK)\",\"name\":\"garage_door_lock\",\"via_device\":\"zigbee2mqtt_bridge_0x00124b00120144ae\"},\"name\":\"Relay\",\"object_id\":\"garage_door_lock_relay\",\"origin\":{\"name\":\"Zigbee2MQTT\",\"sw\":\"1.42.0-dev\",\"url\":\"https://www.zigbee2mqtt.io\"},\"payload_off\":\"OFF\",\"payload_on\":\"ON\",\"state_topic\":\"zigbee2mqtt/garage_door_lock\",\"unique_id\":\"0x0017880104e45563_switch_relay_zigbee2mqtt\",\"value_template\":\"{{ value_json.state_relay }}\"}", + "homeassistant/binary_sensor/1221051039810110150109113116116_0x00124b00120144ae/restart_required/config", + "{\"availability\":[{\"topic\":\"zigbee2mqtt/bridge/state\",\"value_template\":\"{{ value_json.state }}\"}],\"availability_mode\":\"all\",\"device\":{\"hw_version\":\"z-Stack 20190425\",\"identifiers\":[\"zigbee2mqtt_bridge_0x00124b00120144ae\"],\"manufacturer\":\"Zigbee2MQTT\",\"model\":\"Bridge\",\"name\":\"Zigbee2MQTT Bridge\",\"sw_version\":\"1.42.0-dev\"},\"device_class\":\"problem\",\"enabled_by_default\":false,\"entity_category\":\"diagnostic\",\"name\":\"Restart required\",\"object_id\":\"zigbee2mqtt_bridge_restart_required\",\"origin\":{\"name\":\"Zigbee2MQTT\",\"sw\":\"1.42.0-dev\",\"url\":\"https://www.zigbee2mqtt.io\"},\"payload_off\":false,\"payload_on\":true,\"state_topic\":\"zigbee2mqtt/bridge/info\",\"unique_id\":\"bridge_0x00124b00120144ae_restart_required_zigbee2mqtt\",\"value_template\":\"{{ value_json.restart_required }}\"}", Object { "qos": 1, "retain": true, }, ] 3rd spy call: Array [ - "homeassistant/switch/0x0017880104e45563/switch_relay/config", - "{\"availability\":[{\"topic\":\"zigbee2mqtt/bridge/state\",\"value_template\":\"{{ value_json.state }}\"}],\"command_topic\":\"zigbee2mqtt/garage_door_lock/relay/set\",\"device\":{\"identifiers\":[\"zigbee2mqtt_0x0017880104e45563\"],\"manufact
ci
Process completed with exit code 1.
test/extensions/homeassistant.test.ts > Extension: HomeAssistant > Should discover devices and groups: test/extensions/homeassistant.test.ts#L450
AssertionError: expected "spy" to be called with arguments: [ …(3) ] Received: 1st spy call: Array [ - "homeassistant/switch/0x0017880104e45563/switch_relay/config", - "{\"availability\":[{\"topic\":\"zigbee2mqtt/bridge/state\",\"value_template\":\"{{ value_json.state }}\"}],\"command_topic\":\"zigbee2mqtt/garage_door_lock/relay/set\",\"device\":{\"identifiers\":[\"zigbee2mqtt_0x0017880104e45563\"],\"manufacturer\":\"Custom devices (DiY)\",\"model\":\"Garage door with lock (GADOLOCK)\",\"name\":\"garage_door_lock\",\"via_device\":\"zigbee2mqtt_bridge_0x00124b00120144ae\"},\"name\":\"Relay\",\"object_id\":\"garage_door_lock_relay\",\"origin\":{\"name\":\"Zigbee2MQTT\",\"sw\":\"1.42.0-dev\",\"url\":\"https://www.zigbee2mqtt.io\"},\"payload_off\":\"OFF\",\"payload_on\":\"ON\",\"state_topic\":\"zigbee2mqtt/garage_door_lock\",\"unique_id\":\"0x0017880104e45563_switch_relay_zigbee2mqtt\",\"value_template\":\"{{ value_json.state_relay }}\"}", + "homeassistant/binary_sensor/1221051039810110150109113116116_0x00124b00120144ae/connection_state/config", + "{\"device\":{\"hw_version\":\"z-Stack 20190425\",\"identifiers\":[\"zigbee2mqtt_bridge_0x00124b00120144ae\"],\"manufacturer\":\"Zigbee2MQTT\",\"model\":\"Bridge\",\"name\":\"Zigbee2MQTT Bridge\",\"sw_version\":\"1.42.0-dev\"},\"device_class\":\"connectivity\",\"entity_category\":\"diagnostic\",\"name\":\"Connection state\",\"object_id\":\"zigbee2mqtt_bridge_connection_state\",\"origin\":{\"name\":\"Zigbee2MQTT\",\"sw\":\"1.42.0-dev\",\"url\":\"https://www.zigbee2mqtt.io\"},\"payload_off\":\"offline\",\"payload_on\":\"online\",\"state_topic\":\"zigbee2mqtt/bridge/state\",\"unique_id\":\"bridge_0x00124b00120144ae_connection_state_zigbee2mqtt\",\"value_template\":\"{{ value_json.state }}\"}", Object { "qos": 1, "retain": true, }, ] 2nd spy call: Array [ - "homeassistant/switch/0x0017880104e45563/switch_relay/config", - "{\"availability\":[{\"topic\":\"zigbee2mqtt/bridge/state\",\"value_template\":\"{{ value_json.state }}\"}],\"command_topic\":\"zigbee2mqtt/garage_door_lock/relay/set\",\"device\":{\"identifiers\":[\"zigbee2mqtt_0x0017880104e45563\"],\"manufacturer\":\"Custom devices (DiY)\",\"model\":\"Garage door with lock (GADOLOCK)\",\"name\":\"garage_door_lock\",\"via_device\":\"zigbee2mqtt_bridge_0x00124b00120144ae\"},\"name\":\"Relay\",\"object_id\":\"garage_door_lock_relay\",\"origin\":{\"name\":\"Zigbee2MQTT\",\"sw\":\"1.42.0-dev\",\"url\":\"https://www.zigbee2mqtt.io\"},\"payload_off\":\"OFF\",\"payload_on\":\"ON\",\"state_topic\":\"zigbee2mqtt/garage_door_lock\",\"unique_id\":\"0x0017880104e45563_switch_relay_zigbee2mqtt\",\"value_template\":\"{{ value_json.state_relay }}\"}", + "homeassistant/binary_sensor/1221051039810110150109113116116_0x00124b00120144ae/restart_required/config", + "{\"availability\":[{\"topic\":\"zigbee2mqtt/bridge/state\",\"value_template\":\"{{ value_json.state }}\"}],\"availability_mode\":\"all\",\"device\":{\"hw_version\":\"z-Stack 20190425\",\"identifiers\":[\"zigbee2mqtt_bridge_0x00124b00120144ae\"],\"manufacturer\":\"Zigbee2MQTT\",\"model\":\"Bridge\",\"name\":\"Zigbee2MQTT Bridge\",\"sw_version\":\"1.42.0-dev\"},\"device_class\":\"problem\",\"enabled_by_default\":false,\"entity_category\":\"diagnostic\",\"name\":\"Restart required\",\"object_id\":\"zigbee2mqtt_bridge_restart_required\",\"origin\":{\"name\":\"Zigbee2MQTT\",\"sw\":\"1.42.0-dev\",\"url\":\"https://www.zigbee2mqtt.io\"},\"payload_off\":false,\"payload_on\":true,\"state_topic\":\"zigbee2mqtt/bridge/info\",\"unique_id\":\"bridge_0x00124b00120144ae_restart_required_zigbee2mqtt\",\"value_template\":\"{{ value_json.restart_required }}\"}", Object { "qos": 1, "retain": true, }, ] 3rd spy call: Array [ - "homeassistant/switch/0x0017880104e45563/switch_relay/config", - "{\"availability\":[{\"topic\":\"zigbee2mqtt/bridge/state\",\"value_template\":\"{{ value_json.state }}\"}],\"command_topic\":\"zigbee2mqtt/garage_door_lock/relay/set\",\"device\":{\"identifiers\":[\"zigbee2mqtt_0x0017880104e45563\"],\"manufact
tests (macos-latest, 22)
Process completed with exit code 1.
test/extensions/bridge.test.ts > Extension: Bridge > Change options and apply - homeassistant: test/extensions/bridge.test.ts#L3791
AssertionError: expected "spy" to be called with arguments: [ …(3) ] Received: 1st spy call: Array [ - "zigbee2mqtt/bridge/response/options", - "{\"data\":{\"restart_required\":true},\"status\":\"ok\"}", + "zigbee2mqtt/bridge/devices", + "[{\"disabled\":false,\"endpoints\":{\"1\":{\"bindings\":[],\"clusters\":{\"input\":[],\"output\":[]},\"configured_reportings\":[],\"scenes\":[]}},\"friendly_name\":\"Coordinator\",\"ieee_address\":\"0x00124b00120144ae\",\"interview_completed\":false,\"interviewing\":false,\"network_address\":0,\"supported\":true,\"type\":\"Coordinator\"},{\"definition\":{\"description\":\"TRADFRI bulb E26/E27, white spectrum, globe, opal, 980 lm\",\"exposes\":[{\"features\":[{\"access\":7,\"description\":\"On/off state of this light\",\"label\":\"State\",\"name\":\"state\",\"property\":\"state\",\"type\":\"binary\",\"value_off\":\"OFF\",\"value_on\":\"ON\",\"value_toggle\":\"TOGGLE\"},{\"access\":7,\"description\":\"Brightness of this light\",\"label\":\"Brightness\",\"name\":\"brightness\",\"property\":\"brightness\",\"type\":\"numeric\",\"value_max\":254,\"value_min\":0},{\"access\":7,\"description\":\"Color temperature of this light\",\"label\":\"Color temp\",\"name\":\"color_temp\",\"presets\":[{\"description\":\"Coolest temperature supported\",\"name\":\"coolest\",\"value\":250},{\"description\":\"Cool temperature (250 mireds / 4000 Kelvin)\",\"name\":\"cool\",\"value\":250},{\"description\":\"Neutral temperature (370 mireds / 2700 Kelvin)\",\"name\":\"neutral\",\"value\":370},{\"description\":\"Warm temperature (454 mireds / 2200 Kelvin)\",\"name\":\"warm\",\"value\":454},{\"description\":\"Warmest temperature supported\",\"name\":\"warmest\",\"value\":454}],\"property\":\"color_temp\",\"type\":\"numeric\",\"unit\":\"mired\",\"value_max\":454,\"value_min\":250},{\"access\":7,\"description\":\"Color temperature after cold power on of this light\",\"label\":\"Color temp startup\",\"name\":\"color_temp_startup\",\"presets\":[{\"description\":\"Coolest temperature supported\",\"name\":\"coolest\",\"value\":250},{\"description\":\"Cool temperature (250 mireds / 4000 Kelvin)\",\"name\":\"cool\",\"value\":250},{\"description\":\"Neutral temperature (370 mireds / 2700 Kelvin)\",\"name\":\"neutral\",\"value\":370},{\"description\":\"Warm temperature (454 mireds / 2200 Kelvin)\",\"name\":\"warm\",\"value\":454},{\"description\":\"Warmest temperature supported\",\"name\":\"warmest\",\"value\":454},{\"description\":\"Restore previous color_temp on cold power on\",\"name\":\"previous\",\"value\":65535}],\"property\":\"color_temp_startup\",\"type\":\"numeric\",\"unit\":\"mired\",\"value_max\":454,\"value_min\":250},{\"access\":7,\"description\":\"Configure genLevelCtrl\",\"features\":[{\"access\":7,\"description\":\"this setting can affect the \\\"on_level\\\", \\\"current_level_startup\\\" or \\\"brightness\\\" setting\",\"label\":\"Execute if off\",\"name\":\"execute_if_off\",\"property\":\"execute_if_off\",\"type\":\"binary\",\"value_off\":false,\"value_on\":true},{\"access\":7,\"description\":\"Defines the desired startup level for a device when it is supplied with power\",\"label\":\"Current level startup\",\"name\":\"current_level_startup\",\"presets\":[{\"description\":\"Use minimum permitted value\",\"name\":\"minimum\",\"value\":\"minimum\"},{\"description\":\"Use previous value\",\"name\":\"previous\",\"value\":\"previous\"}],\"property\":\"current_level_startup\",\"type\":\"numeric\",\"value_max\":254,\"value_min\":1}],\"label\":\"Level config\",\"name\":\"level_config\",\"property\":\"level_config\",\"type\":\"composite\"}],\"type\":\"light\"},{\"access\":2,\"description\":\"Triggers an effect on the light (e.g. make light blink for a few seconds)\",\"label\":\"Effect\",\"name\":\"effect\",\"property\":\"effect\",\"type\":\"enum\",\"values\":[\"blink\",\"breathe\",\"okay\",\"channel_change\",\"finish_effect\",\"stop_effect\"]},{\"access\":7,\"category\":\"config\",\"description\":\"Controls the behavior when the device is powered on after power loss\",\"label\":\"Power-on behavior\",
test/extensions/homeassistant.test.ts > Extension: HomeAssistant > Should discover devices and groups: test/extensions/homeassistant.test.ts#L450
AssertionError: expected "spy" to be called with arguments: [ …(3) ] Received: 1st spy call: Array [ - "homeassistant/switch/0x0017880104e45563/switch_relay/config", - "{\"availability\":[{\"topic\":\"zigbee2mqtt/bridge/state\",\"value_template\":\"{{ value_json.state }}\"}],\"command_topic\":\"zigbee2mqtt/garage_door_lock/relay/set\",\"device\":{\"identifiers\":[\"zigbee2mqtt_0x0017880104e45563\"],\"manufacturer\":\"Custom devices (DiY)\",\"model\":\"Garage door with lock (GADOLOCK)\",\"name\":\"garage_door_lock\",\"via_device\":\"zigbee2mqtt_bridge_0x00124b00120144ae\"},\"name\":\"Relay\",\"object_id\":\"garage_door_lock_relay\",\"origin\":{\"name\":\"Zigbee2MQTT\",\"sw\":\"1.42.0-dev\",\"url\":\"https://www.zigbee2mqtt.io\"},\"payload_off\":\"OFF\",\"payload_on\":\"ON\",\"state_topic\":\"zigbee2mqtt/garage_door_lock\",\"unique_id\":\"0x0017880104e45563_switch_relay_zigbee2mqtt\",\"value_template\":\"{{ value_json.state_relay }}\"}", + "homeassistant/binary_sensor/1221051039810110150109113116116_0x00124b00120144ae/connection_state/config", + "{\"device\":{\"hw_version\":\"z-Stack 20190425\",\"identifiers\":[\"zigbee2mqtt_bridge_0x00124b00120144ae\"],\"manufacturer\":\"Zigbee2MQTT\",\"model\":\"Bridge\",\"name\":\"Zigbee2MQTT Bridge\",\"sw_version\":\"1.42.0-dev\"},\"device_class\":\"connectivity\",\"entity_category\":\"diagnostic\",\"name\":\"Connection state\",\"object_id\":\"zigbee2mqtt_bridge_connection_state\",\"origin\":{\"name\":\"Zigbee2MQTT\",\"sw\":\"1.42.0-dev\",\"url\":\"https://www.zigbee2mqtt.io\"},\"payload_off\":\"offline\",\"payload_on\":\"online\",\"state_topic\":\"zigbee2mqtt/bridge/state\",\"unique_id\":\"bridge_0x00124b00120144ae_connection_state_zigbee2mqtt\",\"value_template\":\"{{ value_json.state }}\"}", Object { "qos": 1, "retain": true, }, ] 2nd spy call: Array [ - "homeassistant/switch/0x0017880104e45563/switch_relay/config", - "{\"availability\":[{\"topic\":\"zigbee2mqtt/bridge/state\",\"value_template\":\"{{ value_json.state }}\"}],\"command_topic\":\"zigbee2mqtt/garage_door_lock/relay/set\",\"device\":{\"identifiers\":[\"zigbee2mqtt_0x0017880104e45563\"],\"manufacturer\":\"Custom devices (DiY)\",\"model\":\"Garage door with lock (GADOLOCK)\",\"name\":\"garage_door_lock\",\"via_device\":\"zigbee2mqtt_bridge_0x00124b00120144ae\"},\"name\":\"Relay\",\"object_id\":\"garage_door_lock_relay\",\"origin\":{\"name\":\"Zigbee2MQTT\",\"sw\":\"1.42.0-dev\",\"url\":\"https://www.zigbee2mqtt.io\"},\"payload_off\":\"OFF\",\"payload_on\":\"ON\",\"state_topic\":\"zigbee2mqtt/garage_door_lock\",\"unique_id\":\"0x0017880104e45563_switch_relay_zigbee2mqtt\",\"value_template\":\"{{ value_json.state_relay }}\"}", + "homeassistant/binary_sensor/1221051039810110150109113116116_0x00124b00120144ae/restart_required/config", + "{\"availability\":[{\"topic\":\"zigbee2mqtt/bridge/state\",\"value_template\":\"{{ value_json.state }}\"}],\"availability_mode\":\"all\",\"device\":{\"hw_version\":\"z-Stack 20190425\",\"identifiers\":[\"zigbee2mqtt_bridge_0x00124b00120144ae\"],\"manufacturer\":\"Zigbee2MQTT\",\"model\":\"Bridge\",\"name\":\"Zigbee2MQTT Bridge\",\"sw_version\":\"1.42.0-dev\"},\"device_class\":\"problem\",\"enabled_by_default\":false,\"entity_category\":\"diagnostic\",\"name\":\"Restart required\",\"object_id\":\"zigbee2mqtt_bridge_restart_required\",\"origin\":{\"name\":\"Zigbee2MQTT\",\"sw\":\"1.42.0-dev\",\"url\":\"https://www.zigbee2mqtt.io\"},\"payload_off\":false,\"payload_on\":true,\"state_topic\":\"zigbee2mqtt/bridge/info\",\"unique_id\":\"bridge_0x00124b00120144ae_restart_required_zigbee2mqtt\",\"value_template\":\"{{ value_json.restart_required }}\"}", Object { "qos": 1, "retain": true, }, ] 3rd spy call: Array [ - "homeassistant/switch/0x0017880104e45563/switch_relay/config", - "{\"availability\":[{\"topic\":\"zigbee2mqtt/bridge/state\",\"value_template\":\"{{ value_json.state }}\"}],\"command_topic\":\"zigbee2mqtt/garage_door_lock/relay/set\",\"device\":{\"identifiers\":[\"zigbee2mqtt_0x0017880104e45563\"],\"manufact
tests (windows-latest, 18)
Process completed with exit code 1.
test/extensions/bridge.test.ts > Extension: Bridge > Change options and apply - homeassistant: test/extensions/bridge.test.ts#L3791
AssertionError: expected "spy" to be called with arguments: [ …(3) ] Received: 1st spy call: Array [ - "zigbee2mqtt/bridge/response/options", - "{\"data\":{\"restart_required\":true},\"status\":\"ok\"}", + "zigbee2mqtt/bridge/devices", + "[{\"disabled\":false,\"endpoints\":{\"1\":{\"bindings\":[],\"clusters\":{\"input\":[],\"output\":[]},\"configured_reportings\":[],\"scenes\":[]}},\"friendly_name\":\"Coordinator\",\"ieee_address\":\"0x00124b00120144ae\",\"interview_completed\":false,\"interviewing\":false,\"network_address\":0,\"supported\":true,\"type\":\"Coordinator\"},{\"definition\":{\"description\":\"TRADFRI bulb E26/E27, white spectrum, globe, opal, 980 lm\",\"exposes\":[{\"features\":[{\"access\":7,\"description\":\"On/off state of this light\",\"label\":\"State\",\"name\":\"state\",\"property\":\"state\",\"type\":\"binary\",\"value_off\":\"OFF\",\"value_on\":\"ON\",\"value_toggle\":\"TOGGLE\"},{\"access\":7,\"description\":\"Brightness of this light\",\"label\":\"Brightness\",\"name\":\"brightness\",\"property\":\"brightness\",\"type\":\"numeric\",\"value_max\":254,\"value_min\":0},{\"access\":7,\"description\":\"Color temperature of this light\",\"label\":\"Color temp\",\"name\":\"color_temp\",\"presets\":[{\"description\":\"Coolest temperature supported\",\"name\":\"coolest\",\"value\":250},{\"description\":\"Cool temperature (250 mireds / 4000 Kelvin)\",\"name\":\"cool\",\"value\":250},{\"description\":\"Neutral temperature (370 mireds / 2700 Kelvin)\",\"name\":\"neutral\",\"value\":370},{\"description\":\"Warm temperature (454 mireds / 2200 Kelvin)\",\"name\":\"warm\",\"value\":454},{\"description\":\"Warmest temperature supported\",\"name\":\"warmest\",\"value\":454}],\"property\":\"color_temp\",\"type\":\"numeric\",\"unit\":\"mired\",\"value_max\":454,\"value_min\":250},{\"access\":7,\"description\":\"Color temperature after cold power on of this light\",\"label\":\"Color temp startup\",\"name\":\"color_temp_startup\",\"presets\":[{\"description\":\"Coolest temperature supported\",\"name\":\"coolest\",\"value\":250},{\"description\":\"Cool temperature (250 mireds / 4000 Kelvin)\",\"name\":\"cool\",\"value\":250},{\"description\":\"Neutral temperature (370 mireds / 2700 Kelvin)\",\"name\":\"neutral\",\"value\":370},{\"description\":\"Warm temperature (454 mireds / 2200 Kelvin)\",\"name\":\"warm\",\"value\":454},{\"description\":\"Warmest temperature supported\",\"name\":\"warmest\",\"value\":454},{\"description\":\"Restore previous color_temp on cold power on\",\"name\":\"previous\",\"value\":65535}],\"property\":\"color_temp_startup\",\"type\":\"numeric\",\"unit\":\"mired\",\"value_max\":454,\"value_min\":250},{\"access\":7,\"description\":\"Configure genLevelCtrl\",\"features\":[{\"access\":7,\"description\":\"this setting can affect the \\\"on_level\\\", \\\"current_level_startup\\\" or \\\"brightness\\\" setting\",\"label\":\"Execute if off\",\"name\":\"execute_if_off\",\"property\":\"execute_if_off\",\"type\":\"binary\",\"value_off\":false,\"value_on\":true},{\"access\":7,\"description\":\"Defines the desired startup level for a device when it is supplied with power\",\"label\":\"Current level startup\",\"name\":\"current_level_startup\",\"presets\":[{\"description\":\"Use minimum permitted value\",\"name\":\"minimum\",\"value\":\"minimum\"},{\"description\":\"Use previous value\",\"name\":\"previous\",\"value\":\"previous\"}],\"property\":\"current_level_startup\",\"type\":\"numeric\",\"value_max\":254,\"value_min\":1}],\"label\":\"Level config\",\"name\":\"level_config\",\"property\":\"level_config\",\"type\":\"composite\"}],\"type\":\"light\"},{\"access\":2,\"description\":\"Triggers an effect on the light (e.g. make light blink for a few seconds)\",\"label\":\"Effect\",\"name\":\"effect\",\"property\":\"effect\",\"type\":\"enum\",\"values\":[\"blink\",\"breathe\",\"okay\",\"channel_change\",\"finish_effect\",\"stop_effect\"]},{\"access\":7,\"category\":\"config\",\"description\":\"Controls the behavior when the device is powered on after power loss\",\"label\":\"Power-on behavior\",
test/extensions/homeassistant.test.ts > Extension: HomeAssistant > Should discover devices and groups: test/extensions/homeassistant.test.ts#L450
AssertionError: expected "spy" to be called with arguments: [ …(3) ] Received: 1st spy call: Array [ - "homeassistant/switch/0x0017880104e45563/switch_relay/config", - "{\"availability\":[{\"topic\":\"zigbee2mqtt/bridge/state\",\"value_template\":\"{{ value_json.state }}\"}],\"command_topic\":\"zigbee2mqtt/garage_door_lock/relay/set\",\"device\":{\"identifiers\":[\"zigbee2mqtt_0x0017880104e45563\"],\"manufacturer\":\"Custom devices (DiY)\",\"model\":\"Garage door with lock (GADOLOCK)\",\"name\":\"garage_door_lock\",\"via_device\":\"zigbee2mqtt_bridge_0x00124b00120144ae\"},\"name\":\"Relay\",\"object_id\":\"garage_door_lock_relay\",\"origin\":{\"name\":\"Zigbee2MQTT\",\"sw\":\"1.42.0-dev\",\"url\":\"https://www.zigbee2mqtt.io\"},\"payload_off\":\"OFF\",\"payload_on\":\"ON\",\"state_topic\":\"zigbee2mqtt/garage_door_lock\",\"unique_id\":\"0x0017880104e45563_switch_relay_zigbee2mqtt\",\"value_template\":\"{{ value_json.state_relay }}\"}", + "homeassistant/binary_sensor/1221051039810110150109113116116_0x00124b00120144ae/connection_state/config", + "{\"device\":{\"hw_version\":\"z-Stack 20190425\",\"identifiers\":[\"zigbee2mqtt_bridge_0x00124b00120144ae\"],\"manufacturer\":\"Zigbee2MQTT\",\"model\":\"Bridge\",\"name\":\"Zigbee2MQTT Bridge\",\"sw_version\":\"1.42.0-dev\"},\"device_class\":\"connectivity\",\"entity_category\":\"diagnostic\",\"name\":\"Connection state\",\"object_id\":\"zigbee2mqtt_bridge_connection_state\",\"origin\":{\"name\":\"Zigbee2MQTT\",\"sw\":\"1.42.0-dev\",\"url\":\"https://www.zigbee2mqtt.io\"},\"payload_off\":\"offline\",\"payload_on\":\"online\",\"state_topic\":\"zigbee2mqtt/bridge/state\",\"unique_id\":\"bridge_0x00124b00120144ae_connection_state_zigbee2mqtt\",\"value_template\":\"{{ value_json.state }}\"}", Object { "qos": 1, "retain": true, }, ] 2nd spy call: Array [ - "homeassistant/switch/0x0017880104e45563/switch_relay/config", - "{\"availability\":[{\"topic\":\"zigbee2mqtt/bridge/state\",\"value_template\":\"{{ value_json.state }}\"}],\"command_topic\":\"zigbee2mqtt/garage_door_lock/relay/set\",\"device\":{\"identifiers\":[\"zigbee2mqtt_0x0017880104e45563\"],\"manufacturer\":\"Custom devices (DiY)\",\"model\":\"Garage door with lock (GADOLOCK)\",\"name\":\"garage_door_lock\",\"via_device\":\"zigbee2mqtt_bridge_0x00124b00120144ae\"},\"name\":\"Relay\",\"object_id\":\"garage_door_lock_relay\",\"origin\":{\"name\":\"Zigbee2MQTT\",\"sw\":\"1.42.0-dev\",\"url\":\"https://www.zigbee2mqtt.io\"},\"payload_off\":\"OFF\",\"payload_on\":\"ON\",\"state_topic\":\"zigbee2mqtt/garage_door_lock\",\"unique_id\":\"0x0017880104e45563_switch_relay_zigbee2mqtt\",\"value_template\":\"{{ value_json.state_relay }}\"}", + "homeassistant/binary_sensor/1221051039810110150109113116116_0x00124b00120144ae/restart_required/config", + "{\"availability\":[{\"topic\":\"zigbee2mqtt/bridge/state\",\"value_template\":\"{{ value_json.state }}\"}],\"availability_mode\":\"all\",\"device\":{\"hw_version\":\"z-Stack 20190425\",\"identifiers\":[\"zigbee2mqtt_bridge_0x00124b00120144ae\"],\"manufacturer\":\"Zigbee2MQTT\",\"model\":\"Bridge\",\"name\":\"Zigbee2MQTT Bridge\",\"sw_version\":\"1.42.0-dev\"},\"device_class\":\"problem\",\"enabled_by_default\":false,\"entity_category\":\"diagnostic\",\"name\":\"Restart required\",\"object_id\":\"zigbee2mqtt_bridge_restart_required\",\"origin\":{\"name\":\"Zigbee2MQTT\",\"sw\":\"1.42.0-dev\",\"url\":\"https://www.zigbee2mqtt.io\"},\"payload_off\":false,\"payload_on\":true,\"state_topic\":\"zigbee2mqtt/bridge/info\",\"unique_id\":\"bridge_0x00124b00120144ae_restart_required_zigbee2mqtt\",\"value_template\":\"{{ value_json.restart_required }}\"}", Object { "qos": 1, "retain": true, }, ] 3rd spy call: Array [ - "homeassistant/switch/0x0017880104e45563/switch_relay/config", - "{\"availability\":[{\"topic\":\"zigbee2mqtt/bridge/state\",\"value_template\":\"{{ value_json.state }}\"}],\"command_topic\":\"zigbee2mqtt/garage_door_lock/relay/set\",\"device\":{\"identifiers\":[\"zigbee2mqtt_0x0017880104e45563\"],\"manufact
tests (windows-latest, 20)
Process completed with exit code 1.
test/extensions/homeassistant.test.ts > Extension: HomeAssistant > Should discover devices and groups: test/extensions/homeassistant.test.ts#L450
AssertionError: expected "spy" to be called with arguments: [ …(3) ] Received: 1st spy call: Array [ - "homeassistant/switch/0x0017880104e45563/switch_relay/config", - "{\"availability\":[{\"topic\":\"zigbee2mqtt/bridge/state\",\"value_template\":\"{{ value_json.state }}\"}],\"command_topic\":\"zigbee2mqtt/garage_door_lock/relay/set\",\"device\":{\"identifiers\":[\"zigbee2mqtt_0x0017880104e45563\"],\"manufacturer\":\"Custom devices (DiY)\",\"model\":\"Garage door with lock (GADOLOCK)\",\"name\":\"garage_door_lock\",\"via_device\":\"zigbee2mqtt_bridge_0x00124b00120144ae\"},\"name\":\"Relay\",\"object_id\":\"garage_door_lock_relay\",\"origin\":{\"name\":\"Zigbee2MQTT\",\"sw\":\"1.42.0-dev\",\"url\":\"https://www.zigbee2mqtt.io\"},\"payload_off\":\"OFF\",\"payload_on\":\"ON\",\"state_topic\":\"zigbee2mqtt/garage_door_lock\",\"unique_id\":\"0x0017880104e45563_switch_relay_zigbee2mqtt\",\"value_template\":\"{{ value_json.state_relay }}\"}", + "homeassistant/binary_sensor/1221051039810110150109113116116_0x00124b00120144ae/connection_state/config", + "{\"device\":{\"hw_version\":\"z-Stack 20190425\",\"identifiers\":[\"zigbee2mqtt_bridge_0x00124b00120144ae\"],\"manufacturer\":\"Zigbee2MQTT\",\"model\":\"Bridge\",\"name\":\"Zigbee2MQTT Bridge\",\"sw_version\":\"1.42.0-dev\"},\"device_class\":\"connectivity\",\"entity_category\":\"diagnostic\",\"name\":\"Connection state\",\"object_id\":\"zigbee2mqtt_bridge_connection_state\",\"origin\":{\"name\":\"Zigbee2MQTT\",\"sw\":\"1.42.0-dev\",\"url\":\"https://www.zigbee2mqtt.io\"},\"payload_off\":\"offline\",\"payload_on\":\"online\",\"state_topic\":\"zigbee2mqtt/bridge/state\",\"unique_id\":\"bridge_0x00124b00120144ae_connection_state_zigbee2mqtt\",\"value_template\":\"{{ value_json.state }}\"}", Object { "qos": 1, "retain": true, }, ] 2nd spy call: Array [ - "homeassistant/switch/0x0017880104e45563/switch_relay/config", - "{\"availability\":[{\"topic\":\"zigbee2mqtt/bridge/state\",\"value_template\":\"{{ value_json.state }}\"}],\"command_topic\":\"zigbee2mqtt/garage_door_lock/relay/set\",\"device\":{\"identifiers\":[\"zigbee2mqtt_0x0017880104e45563\"],\"manufacturer\":\"Custom devices (DiY)\",\"model\":\"Garage door with lock (GADOLOCK)\",\"name\":\"garage_door_lock\",\"via_device\":\"zigbee2mqtt_bridge_0x00124b00120144ae\"},\"name\":\"Relay\",\"object_id\":\"garage_door_lock_relay\",\"origin\":{\"name\":\"Zigbee2MQTT\",\"sw\":\"1.42.0-dev\",\"url\":\"https://www.zigbee2mqtt.io\"},\"payload_off\":\"OFF\",\"payload_on\":\"ON\",\"state_topic\":\"zigbee2mqtt/garage_door_lock\",\"unique_id\":\"0x0017880104e45563_switch_relay_zigbee2mqtt\",\"value_template\":\"{{ value_json.state_relay }}\"}", + "homeassistant/binary_sensor/1221051039810110150109113116116_0x00124b00120144ae/restart_required/config", + "{\"availability\":[{\"topic\":\"zigbee2mqtt/bridge/state\",\"value_template\":\"{{ value_json.state }}\"}],\"availability_mode\":\"all\",\"device\":{\"hw_version\":\"z-Stack 20190425\",\"identifiers\":[\"zigbee2mqtt_bridge_0x00124b00120144ae\"],\"manufacturer\":\"Zigbee2MQTT\",\"model\":\"Bridge\",\"name\":\"Zigbee2MQTT Bridge\",\"sw_version\":\"1.42.0-dev\"},\"device_class\":\"problem\",\"enabled_by_default\":false,\"entity_category\":\"diagnostic\",\"name\":\"Restart required\",\"object_id\":\"zigbee2mqtt_bridge_restart_required\",\"origin\":{\"name\":\"Zigbee2MQTT\",\"sw\":\"1.42.0-dev\",\"url\":\"https://www.zigbee2mqtt.io\"},\"payload_off\":false,\"payload_on\":true,\"state_topic\":\"zigbee2mqtt/bridge/info\",\"unique_id\":\"bridge_0x00124b00120144ae_restart_required_zigbee2mqtt\",\"value_template\":\"{{ value_json.restart_required }}\"}", Object { "qos": 1, "retain": true, }, ] 3rd spy call: Array [ - "homeassistant/switch/0x0017880104e45563/switch_relay/config", - "{\"availability\":[{\"topic\":\"zigbee2mqtt/bridge/state\",\"value_template\":\"{{ value_json.state }}\"}],\"command_topic\":\"zigbee2mqtt/garage_door_lock/relay/set\",\"device\":{\"identifiers\":[\"zigbee2mqtt_0x0017880104e45563\"],\"manufact
tests (windows-latest, 22)
Process completed with exit code 1.
tests (ubuntu-latest, 18)
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
tests (ubuntu-latest, 22)
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
tests (ubuntu-latest, 20)
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
ci
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636