I have been testing some HA configs from Zwave-js-ui. They work fine with one exception, they are displayed on the UI code tab with errors. The impact is that changes (like removing a config) can’t be done. I had to delete the thing and rescan to pick up the changes. My guess is that the config is split-up to fit a certain field size on the UI code tab and that causes the errors.
The errors are;
- all collection items must start at the same column
- Nested mapping are not allowed in compact mappings
- Implicit keys must be followed by map values
- Implicit map keys must be on a single line
Sorry for the picture, but the point is that the HA config
was pulled directly from MQTT (this was one line).
{"payload_on":8,"payload_off":0,"value_template":"{{ value_json.value }}","device_class":"motion","state_topic":"zwave1/nodeID_66/notification/endpoint_0/Home_Security/Motion_sensor_status","availability":[{"payload_available":"true","payload_not_available":"false","topic":"zwave1/nodeID_66/status","value_template":"{{'true' if value_json.value else 'false'}}"},{"topic":"zwave1/_CLIENTS/ZWAVE_GATEWAY-zwave-js-ui/status","value_template":"{{'online' if value_json.value else 'offline'}}"},{"payload_available":"true","payload_not_available":"false","topic":"zwave1/driver/status"}],"availability_mode":"all","json_attributes_topic":"zwave1/nodeID_66/notification/endpoint_0/Home_Security/Motion_sensor_status","device":{"identifiers":["zwavejs2mqtt_0xf1c43721_node66"],"manufacturer":"Zooz","model":"Motion and Vibration Sensor (ZSE18)","name":"nodeID_66","sw_version":"1.3"},"name":"nodeID_66_motion_sensor_status","unique_id":"zwavejs2mqtt_0xf1c43721_66-113-0-Home_Security-Motion_sensor_status"}
Can anything be done or are there UI constraints?