Hi
I have had a terrible time with a rogue lightbulb that was constantly flashing. Google this time didnt help me and I have had to delete everything after flashing my conbee 2 stick as none of my lights were working. Alas I am starting again but trying to restore my controllerx config.
After almost typing that I couldnt get appdaemon to work with the controllers I finally saw in my config where I was going wrong. I can get the controllers to work now. However, I dont seem to be able to cycle through the different colours which is odd. Toggle on and off work, as does brighness up and down. I have only used the merge mapping as you will see from my config:
office_controller_test:
module: controllerx
class: E1810Z2MLightController
integration:
name: z2m
listen_to: mqtt
controller: 1st Floor Office Testing Controller
light:
name: 1st Floor Office Light
mode: mqtt
merge_mapping:
toggle$2:
service: scene.turn_on
data:
entity_id: scene.office_warm_white
office_controller2:
module: controllerx
class: E2002Z2MLightController
integration:
name: z2m
listen_to: mqtt
controller: 1st Floor Office Remote
light:
name: 1st Floor Office Light
mode: mqtt
merge_mapping:
arrow_left_click$2:
service: scene.turn_on
data:
entity_id: scene.office_warm_white
I have seen in zigbee2mqtt I am getting these error messages which I dont really understand. The bulb is a tradfri colour bulb and was fine switching through the colours before:
Debug 2023-02-19 01:59:02Received Zigbee message from '1st Floor Office Testing Controller', type 'commandTradfriArrowSingle', cluster 'genScenes', data '{"value":256,"value2":13}' from endpoint 1 with groupID null
Info 2023-02-19 01:59:02MQTT publish: topic 'zigbee2mqtt/1st Floor Office Testing Controller', payload '{"action":"arrow_right_click","battery":40,"linkquality":255,"update":{"installed_version":604241925,"latest_version":604241925,"state":"idle"},"update_available":false}'
Info 2023-02-19 01:59:02MQTT publish: topic 'zigbee2mqtt/1st Floor Office Testing Controller', payload '{"action":"","battery":40,"linkquality":255,"update":{"installed_version":604241925,"latest_version":604241925,"state":"idle"},"update_available":false}'
Info 2023-02-19 01:59:02MQTT publish: topic 'zigbee2mqtt/1st Floor Office Testing Controller/action', payload 'arrow_right_click'
Debug 2023-02-19 01:59:02Received MQTT message on 'zigbee2mqtt/1st Floor Office Light/set' with data '{"color_temp_step": 70, "transition": 0.5}'
Debug 2023-02-19 01:59:02Publishing 'set' 'color_temp_step' to '1st Floor Office Light'
Debug 2023-02-19 01:59:03Received Zigbee message from '1st Floor Office Light', type 'readResponse', cluster 'lightingColorCtrl', data '{}' from endpoint 1 with groupID null
Error 2023-02-19 01:59:03Exception while calling fromZigbee converter: Cannot read properties of undefined (reading 'hasOwnProperty')}
Debug 2023-02-19 01:59:03TypeError: Cannot read properties of undefined (reading 'hasOwnProperty') at Function.fromObject (/app/node_modules/zigbee-herdsman-converters/lib/color.js:218:17) at Function.fromMireds (/app/node_modules/zigbee-herdsman-converters/lib/color.js:231:24) at Object.syncColorState (/app/node_modules/zigbee-herdsman-converters/lib/color.js:761:32) at Object.convert (/app/node_modules/zigbee-herdsman-converters/converters/fromZigbee.js:645:51) at Receive.onDeviceMessage (/app/lib/extension/receive.ts:143:51) at EventEmitter.emit (node:events:525:35) at EventBus.emitDeviceMessage (/app/lib/eventBus.ts:102:22) at Controller.<anonymous> (/app/lib/zigbee.ts:106:27) at Controller.emit (node:events:513:28) at Controller.selfAndDeviceEmit (/app/node_modules/zigbee-herdsman/src/controller/controller.ts:515:14)
Error 2023-02-19 01:59:03Publish 'set' 'color_temp_step' to '1st Floor Office Light' failed: 'Error: Read 0xbc33acfffe83df06/1 lightingColorCtrl(["colorTemperature"], {"sendWhen":"immediate","timeout":10000,"disableResponse":false,"disableRecovery":false,"disableDefaultResponse":true,"direction":0,"srcEndpoint":null,"reservedBits":0,"manufacturerCode":null,"transactionSequenceNumber":null,"writeUndiv":false}) failed (Status 'UNSUPPORTED_ATTRIBUTE')'
Debug 2023-02-19 01:59:03Error: Read 0xbc33acfffe83df06/1 lightingColorCtrl(["colorTemperature"], {"sendWhen":"immediate","timeout":10000,"disableResponse":false,"disableRecovery":false,"disableDefaultResponse":true,"direction":0,"srcEndpoint":null,"reservedBits":0,"manufacturerCode":null,"transactionSequenceNumber":null,"writeUndiv":false}) failed (Status 'UNSUPPORTED_ATTRIBUTE') at Endpoint.checkStatus (/app/node_modules/zigbee-herdsman/src/controller/model/endpoint.ts:317:28) at Endpoint.read (/app/node_modules/zigbee-herdsman/src/controller/model/endpoint.ts:480:22) at Object.convertSet (/app/node_modules/zigbee-herdsman-converters/converters/toZigbee.js:731:17) at Publish.onMQTTMessage (/app/lib/extension/publish.ts:246:36)
Info 2023-02-19 01:59:03MQTT publish: topic 'zigbee2mqtt/bridge/log', payload '{"message":"Publish 'set' 'color_temp_step' to '1st Floor Office Light' failed: 'Error: Read 0xbc33acfffe83df06/1 lightingColorCtrl([\"colorTemperature\"], {\"sendWhen\":\"immediate\",\"timeout\":10000,\"disableResponse\":false,\"disableRecovery\":false,\"disableDefaultResponse\":true,\"direction\":0,\"srcEndpoint\":null,\"reservedBits\":0,\"manufacturerCode\":null,\"transactionSequenceNumber\":null,\"writeUndiv\":false}) failed (Status 'UNSUPPORTED_ATTRIBUTE')'","meta":{"friendly_name":"1st Floor Office Light"},"type":"zigbee_publish_error"}'
Debug 2023-02-19 01:59:03Publishing 'set' 'transition' to '1st Floor Office Light'
I can set the colour manually through zigbee2mqtt and I can turn it on, off, set the scene using the configured script. The not being able to scroll through the colours is most bizarre and really annoying!
Im hoping I have done something dumb here but would appreciate any help anyone can give me.
Im using the following versions:
ControllerX: 4.25.0
Zigbee2MQTT: 1.30.1
Mosquito Broker: 6.1.3
Appdaemon: 0.11.0
Home Assistant: 2023.2.5
Cheers
Phill