xaviml / controllerx

Create controller-based automations with ease to control your home devices and scenes.
https://xaviml.github.io/controllerx/
MIT License
332 stars 68 forks source link

Possible issue with E1743 #863

Open tabearu opened 1 year ago

tabearu commented 1 year ago

Question

Hello everyone. First of all, love the project. I've recently bought an E1743 and have been trying to set it up without access. I've managed to get on/off working but brightness is never working no matter the settings. I always receive entity unknown even though the entity exists in homeassistant.

Additional information

Please note that I'm running everything in docker.

AppDaemon app configuration

# this is working for on/off
ikea_tradfri_switch_1:
  module: controllerx
  class: E1743Controller
  integration: z2m
  controller: sensor.ikea_tradfri_on_off_switch_1_action
  light: light.rooflight

# this is not working at all
ikea_tradfri_switch_1:
  module: controllerx
  class: E1743Z2MLightController
  integration: z2m
  controller: sensor.ikea_tradfri_on_off_switch_1_action
  light: light.rooflight # also tested with:   light: rooflight

Logs

Z2M

Zigbee2MQTT:info  MQTT publish: topic 'zigbee2mqtt/IKEA-Tradfri-On-Off-Switch-1/action', payload 'on'
Zigbee2MQTT:error Entity 'rooflight' is unknown

ControllerX

Zigbee2MQTT:info MQTT publish: topic 'zigbee2mqtt/IKEA-Tradfri-On-Off-Switch-1', payload '{"action":"on","battery":60,"linkquality":65,"update":{"installed_version":-1,"latest_version":-1,"state":null},"update_available":null}'
Zigbee2MQTT:info  MQTT publish: topic 'zigbee2mqtt/IKEA-Tradfri-On-Off-Switch-1', payload '{"action":"","battery":60,"linkquality":65,"update":{"installed_version":-1,"latest_version":-1,"state":null},"update_available":null}'
Zigbee2MQTT:info MQTT publish: topic 'zigbee2mqtt/IKEA-Tradfri-On-Off-Switch-1/action', payload 'on'
Zigbee2MQTT:error Entity 'rooflight' is unknown

Homeassistant

WARNING (MainThread) [homeassistant.helpers.template] Template variable warning: 'dict object' has no attribute 'click' when rendering '{{ value_json.click }}'

I'm not sure what I'm doing wrong and would appreciate all help.

kszys commented 1 year ago

I am in a similar situation, although in my case E1743Controller works fine (on/off as well as dimming), but indeed, I cannot get E1743Z2MLightController to work at all :(

BTW - have you set the lagacy: False ? (https://www.zigbee2mqtt.io/devices/E1743.html)