Yes, that is something I thought. It could be used for other AppDaemon apps for example. In fact AppDaemon already has a UI, maybe it could be integrated in there as well. However, it would not be ControllerX specific.
No issues here, works perfectly.
Hi everyone,
Thank you to everyone trying out the beta version, the stable version has been released.
This minor change does not contain any breaking changes.
Note: Remember to restart the AppDaemon addon/server after updating to a new version.
Features
- Allow to pass parameters to predefined actions. You can check the parameters for each predefined action, and how to pass parameters in here. [ #78 ]
- Support for Light Group integration. To know how entity groups work, read here [ #330 ]
- Add option to read
unique_id
attribute for deCONZ integration. Read more about it here [ #333 ]
Performance
- Reduce calls to HA when entity is a group.
Xavi, my RGB wall control panels are still working beautifully!
I just picked up a Ikea tradfri E1810Controller and I would like to control two different light entities. I was thinking of using the arrows keys and using a template (yay template support) to toggle between which is being controller. Could be more than just two as well. Do you see any limitations before I go down this route?
I will probably make the arrow keys iterate a dummy entity which the app’s template will use to know which light entity to control. Maybe there is an easier way?
edit: I gave it a shot and was able to toggle control between two lights. Here is what I used:
ikea_remote_1:
module: controllerx
class: E1810Controller
controller: ikea_remote
integration:
name: z2m
listen_to: mqtt
light: "{{ states('sensor.ikea_remote_selection') }}"
merge_mapping:
"arrow_right_click":
- service: input_boolean.toggle
entity_id: input_boolean.test_switch_5
"arrow_left_click":
- service: input_boolean.toggle
entity_id: input_boolean.test_switch_5
template:
- sensor:
- name: "ikea remote selection"
state: >
{% if is_state('input_boolean.test_switch_5', 'on') %}
light.tv_lights
{% else %}
light.bedroom_light
{% endif %}
This is just a proof of concept and can be iterated rather than toggled. I might add an automation to do something in the room to make it clear which entity it is now controlled. Beautiful how simple that was.
Hi @germplan,
Sorry for the delay. I see you answer yourself to your question, however, it is limited to just 2 lights. If you want the support for more lights (or 2 as well) you could use an input_select. First, create an input_select through YAML or UI:
input_select:
light_selection:
options:
- light.tv_lights
- light.bedroom_light
- light.another_light
It is important that the options are the entity id of the lights you want to control with the remote. Then the configuration would look like:
ikea_remote_1:
module: controllerx
class: E1810Controller
controller: ikea_remote
integration:
name: z2m
listen_to: mqtt
light: "{{ states('input_select.light_selection') }}"
merge_mapping:
arrow_right_click:
- service: input_select.select_next
entity_id: input_select.light_selection
arrow_left_click:
- service: input_select.select_previous
entity_id: input_select.light_selection
This would work the same as your solution with 2 lights, but it is scalable to add more lights to it. In addition, the left arrow would go back and the right arrow would go next, and by default, I believe that it loops through the selection.
Regards,
Xavi M.
Hi @xaviml
I have been using ControllerX to control my Fyrtur covers with a E1766CoverController, and has been working just fine.But about a month ago they stopped working with me touching anything in my apps.yaml.
I have noticed alot of Warnings when AppDaemon starts, not sure if that could be a reason.
My AppDaemon 4 (0.6.2) log:
2021-07-18 20:33:17.982509 INFO AppDaemon: Using 'ws' for event stream
2021-07-18 20:33:17.986800 INFO AppDaemon: Starting API
2021-07-18 20:33:17.990072 INFO AppDaemon: Starting Admin Interface
2021-07-18 20:33:17.990402 INFO AppDaemon: Starting Dashboards
2021-07-18 20:33:18.012385 INFO HASS: Connected to Home Assistant 2021.7.3
2021-07-18 20:33:18.018476 INFO MQTT: Connected to Broker at URL 192.168.1.233:1883
2021-07-18 20:33:18.027283 INFO AppDaemon: Got initial state from namespace mqtt
2021-07-18 20:33:18.027818 INFO MQTT: MQTT Plugin initialization complete
2021-07-18 20:33:18.049318 INFO AppDaemon: App 'hello_world' added
2021-07-18 20:33:18.050466 INFO AppDaemon: App 'office_dimmer' added
2021-07-18 20:33:18.051496 INFO AppDaemon: App 'kokspis_dimmer' added
2021-07-18 20:33:18.053350 INFO AppDaemon: App 'kokbord_dimmer' added
2021-07-18 20:33:18.054809 INFO AppDaemon: App 'sonosstue' added
2021-07-18 20:33:18.056596 INFO AppDaemon: App 'gardinh' added
2021-07-18 20:33:18.058045 INFO AppDaemon: App 'check_config' added
2021-07-18 20:33:18.059017 INFO AppDaemon: Found 7 total apps
2021-07-18 20:33:18.059545 INFO AppDaemon: Starting Apps with 7 workers and 7 pins
2021-07-18 20:33:18.062623 INFO AppDaemon: Running on port 5050
2021-07-18 20:33:18.074052 INFO HASS: Evaluating startup conditions
2021-07-18 20:33:18.087743 INFO HASS: Startup condition met: hass state=RUNNING
2021-07-18 20:33:18.088080 INFO HASS: All startup conditions met
2021-07-18 20:33:18.129645 INFO AppDaemon: Got initial state from namespace default
2021-07-18 20:33:20.072561 INFO AppDaemon: Scheduler running in realtime
2021-07-18 20:33:20.075240 INFO AppDaemon: Adding /config/appdaemon/apps to module import path
2021-07-18 20:33:20.075568 INFO AppDaemon: Adding /config/appdaemon/apps/controllerx to module import path
2021-07-18 20:33:20.075881 INFO AppDaemon: Adding /config/appdaemon/apps/controllerx/cx_devices to module import path
2021-07-18 20:33:20.076241 INFO AppDaemon: Adding /config/appdaemon/apps/controllerx/cx_core to module import path
2021-07-18 20:33:20.076531 INFO AppDaemon: Adding /config/appdaemon/apps/controllerx/cx_core/feature_support to module import path
2021-07-18 20:33:20.076816 INFO AppDaemon: Adding /config/appdaemon/apps/controllerx/cx_core/integration to module import path
2021-07-18 20:33:20.077115 INFO AppDaemon: Adding /config/appdaemon/apps/controllerx/cx_core/type to module import path
2021-07-18 20:33:20.077395 INFO AppDaemon: Adding /config/appdaemon/apps/controllerx/cx_core/stepper to module import path
2021-07-18 20:33:20.077672 INFO AppDaemon: Adding /config/appdaemon/apps/controllerx/cx_core/action_type to module import path
2021-07-18 20:33:20.077959 INFO AppDaemon: Adding /config/appdaemon/apps/config-check to module import path
2021-07-18 20:33:20.106683 INFO AppDaemon: Loading App Module: /config/appdaemon/apps/hello.py
2021-07-18 20:33:20.147630 INFO AppDaemon: Loading App Module: /config/appdaemon/apps/controllerx/controllerx.py
2021-07-18 20:33:20.183647 WARNING AppDaemon: No app description found for: /config/appdaemon/apps/controllerx/cx_version.py - ignoring
2021-07-18 20:33:20.184882 WARNING AppDaemon: No app description found for: /config/appdaemon/apps/controllerx/cx_const.py - ignoring
2021-07-18 20:33:20.185577 WARNING AppDaemon: No app description found for: /config/appdaemon/apps/controllerx/cx_devices/aqara.py - ignoring
2021-07-18 20:33:20.186284 WARNING AppDaemon: No app description found for: /config/appdaemon/apps/controllerx/cx_devices/livarno.py - ignoring
2021-07-18 20:33:20.186992 WARNING AppDaemon: No app description found for: /config/appdaemon/apps/controllerx/cx_devices/smartthings.py - ignoring
2021-07-18 20:33:20.187709 WARNING AppDaemon: No app description found for: /config/appdaemon/apps/controllerx/cx_devices/osram.py - ignoring
2021-07-18 20:33:20.188419 WARNING AppDaemon: No app description found for: /config/appdaemon/apps/controllerx/cx_devices/legrand.py - ignoring
2021-07-18 20:33:20.189121 WARNING AppDaemon: No app description found for: /config/appdaemon/apps/controllerx/cx_devices/phillips.py - ignoring
2021-07-18 20:33:20.189830 WARNING AppDaemon: No app description found for: /config/appdaemon/apps/controllerx/cx_devices/lutron.py - ignoring
2021-07-18 20:33:20.190530 WARNING AppDaemon: No app description found for: /config/appdaemon/apps/controllerx/cx_devices/trust.py - ignoring
2021-07-18 20:33:20.191225 WARNING AppDaemon: No app description found for: /config/appdaemon/apps/controllerx/cx_devices/tuya.py - ignoring
2021-07-18 20:33:20.191938 WARNING AppDaemon: No app description found for: /config/appdaemon/apps/controllerx/cx_devices/ikea.py - ignoring
2021-07-18 20:33:20.192646 WARNING AppDaemon: No app description found for: /config/appdaemon/apps/controllerx/cx_devices/muller_licht.py - ignoring
2021-07-18 20:33:20.193361 WARNING AppDaemon: No app description found for: /config/appdaemon/apps/controllerx/cx_devices/rgb_genie.py - ignoring
2021-07-18 20:33:20.194103 WARNING AppDaemon: No app description found for: /config/appdaemon/apps/controllerx/cx_devices/__init__.py - ignoring
2021-07-18 20:33:20.194809 WARNING AppDaemon: No app description found for: /config/appdaemon/apps/controllerx/cx_devices/aurora.py - ignoring
2021-07-18 20:33:20.195519 WARNING AppDaemon: No app description found for: /config/appdaemon/apps/controllerx/cx_devices/sonoff.py - ignoring
2021-07-18 20:33:20.196230 WARNING AppDaemon: No app description found for: /config/appdaemon/apps/controllerx/cx_devices/terncy.py - ignoring
2021-07-18 20:33:20.196971 WARNING AppDaemon: No app description found for: /config/appdaemon/apps/controllerx/cx_core/release_hold_controller.py - ignoring
2021-07-18 20:33:20.197692 WARNING AppDaemon: No app description found for: /config/appdaemon/apps/controllerx/cx_core/controller.py - ignoring
2021-07-18 20:33:20.198401 WARNING AppDaemon: No app description found for: /config/appdaemon/apps/controllerx/cx_core/color_helper.py - ignoring
2021-07-18 20:33:20.199102 WARNING AppDaemon: No app description found for: /config/appdaemon/apps/controllerx/cx_core/__init__.py - ignoring
2021-07-18 20:33:20.199817 WARNING AppDaemon: No app description found for: /config/appdaemon/apps/controllerx/cx_core/custom_controller.py - ignoring
2021-07-18 20:33:20.200528 WARNING AppDaemon: No app description found for: /config/appdaemon/apps/controllerx/cx_core/type_controller.py - ignoring
2021-07-18 20:33:20.201236 WARNING AppDaemon: No app description found for: /config/appdaemon/apps/controllerx/cx_core/feature_support/media_player.py - ignoring
2021-07-18 20:33:20.201941 WARNING AppDaemon: No app description found for: /config/appdaemon/apps/controllerx/cx_core/feature_support/cover.py - ignoring
2021-07-18 20:33:20.202657 WARNING AppDaemon: No app description found for: /config/appdaemon/apps/controllerx/cx_core/feature_support/light.py - ignoring
2021-07-18 20:33:20.203357 WARNING AppDaemon: No app description found for: /config/appdaemon/apps/controllerx/cx_core/feature_support/__init__.py - ignoring
2021-07-18 20:33:20.204094 WARNING AppDaemon: No app description found for: /config/appdaemon/apps/controllerx/cx_core/integration/zha.py - ignoring
2021-07-18 20:33:20.204808 WARNING AppDaemon: No app description found for: /config/appdaemon/apps/controllerx/cx_core/integration/deconz.py - ignoring
2021-07-18 20:33:20.205518 WARNING AppDaemon: No app description found for: /config/appdaemon/apps/controllerx/cx_core/integration/lutron_caseta.py - ignoring
2021-07-18 20:33:20.206223 WARNING AppDaemon: No app description found for: /config/appdaemon/apps/controllerx/cx_core/integration/z2m.py - ignoring
2021-07-18 20:33:20.206936 WARNING AppDaemon: No app description found for: /config/appdaemon/apps/controllerx/cx_core/integration/mqtt.py - ignoring
2021-07-18 20:33:20.207653 WARNING AppDaemon: No app description found for: /config/appdaemon/apps/controllerx/cx_core/integration/state.py - ignoring
2021-07-18 20:33:20.208371 WARNING AppDaemon: No app description found for: /config/appdaemon/apps/controllerx/cx_core/integration/__init__.py - ignoring
2021-07-18 20:33:20.209083 WARNING AppDaemon: No app description found for: /config/appdaemon/apps/controllerx/cx_core/type/light_controller.py - ignoring
2021-07-18 20:33:20.209796 WARNING AppDaemon: No app description found for: /config/appdaemon/apps/controllerx/cx_core/type/switch_controller.py - ignoring
2021-07-18 20:33:20.210505 WARNING AppDaemon: No app description found for: /config/appdaemon/apps/controllerx/cx_core/type/cover_controller.py - ignoring
2021-07-18 20:33:20.211217 WARNING AppDaemon: No app description found for: /config/appdaemon/apps/controllerx/cx_core/type/__init__.py - ignoring
2021-07-18 20:33:20.211962 WARNING AppDaemon: No app description found for: /config/appdaemon/apps/controllerx/cx_core/type/media_player_controller.py - ignoring
2021-07-18 20:33:20.212670 WARNING AppDaemon: No app description found for: /config/appdaemon/apps/controllerx/cx_core/stepper/__init__.py - ignoring
2021-07-18 20:33:20.213371 WARNING AppDaemon: No app description found for: /config/appdaemon/apps/controllerx/cx_core/stepper/circular_stepper.py - ignoring
2021-07-18 20:33:20.214076 WARNING AppDaemon: No app description found for: /config/appdaemon/apps/controllerx/cx_core/stepper/minmax_stepper.py - ignoring
2021-07-18 20:33:20.214783 WARNING AppDaemon: No app description found for: /config/appdaemon/apps/controllerx/cx_core/action_type/base.py - ignoring
2021-07-18 20:33:20.215507 WARNING AppDaemon: No app description found for: /config/appdaemon/apps/controllerx/cx_core/action_type/predefined_action_type.py - ignoring
2021-07-18 20:33:20.216226 WARNING AppDaemon: No app description found for: /config/appdaemon/apps/controllerx/cx_core/action_type/call_service_action_type.py - ignoring
2021-07-18 20:33:20.216932 WARNING AppDaemon: No app description found for: /config/appdaemon/apps/controllerx/cx_core/action_type/scene_action_type.py - ignoring
2021-07-18 20:33:20.217634 WARNING AppDaemon: No app description found for: /config/appdaemon/apps/controllerx/cx_core/action_type/__init__.py - ignoring
2021-07-18 20:33:20.218343 WARNING AppDaemon: No app description found for: /config/appdaemon/apps/controllerx/cx_core/action_type/delay_action_type.py - ignoring
2021-07-18 20:33:20.219066 INFO AppDaemon: Loading App Module: /config/appdaemon/apps/config-check/checkconfig.py
2021-07-18 20:33:20.220230 INFO AppDaemon: Initializing app hello_world using class HelloWorld from module hello
2021-07-18 20:33:20.221672 INFO AppDaemon: Initializing app office_dimmer using class E1743Controller from module controllerx
2021-07-18 20:33:20.224374 INFO AppDaemon: Initializing app kokspis_dimmer using class E1743Controller from module controllerx
2021-07-18 20:33:20.225938 INFO AppDaemon: Initializing app kokbord_dimmer using class E1743Controller from module controllerx
2021-07-18 20:33:20.232295 INFO AppDaemon: Initializing app sonosstue using class E1744MediaPlayerController from module controllerx
2021-07-18 20:33:20.233901 INFO AppDaemon: Initializing app gardinh using class E1766CoverController from module controllerx
2021-07-18 20:33:20.235504 INFO AppDaemon: Initializing app check_config using class CheckConfig from module checkconfig
2021-07-18 20:33:20.326607 INFO hello_world: Hello from AppDaemon
2021-07-18 20:33:20.328379 INFO hello_world: You are now ready to run Apps!
2021-07-18 20:33:20.333028 INFO office_dimmer: 🎮 ControllerX v4.14.0
2021-07-18 20:33:20.367711 INFO kokspis_dimmer: 🎮 ControllerX v4.14.0
2021-07-18 20:33:20.391309 INFO kokbord_dimmer: 🎮 ControllerX v4.14.0
2021-07-18 20:33:20.414777 INFO sonosstue: 🎮 ControllerX v4.14.0
2021-07-18 20:33:20.443907 INFO gardinh: 🎮 ControllerX v4.14.0
2021-07-18 20:33:20.473731 INFO AppDaemon: App initialization complete
My apps.yaml:
---
hello_world:
module: hello
class: HelloWorld
office_dimmer:
module: controllerx
class: E1743Controller
controller: sensor.kontor_kontakt_action
integration: z2m
light: group.kontor_loft
add_transition_turn_toggle: true
kokspis_dimmer:
module: controllerx
class: E1743Controller
controller: sensor.kok_kontakt1_action
integration: z2m
light: light.0x14b457fffe67953d_light
kokbord_dimmer:
module: controllerx
class: E1743Controller
controller: sensor.kok_kontakt2_action
integration: z2m
light: group.kokbord
sonosstue:
module: controllerx
class: E1744MediaPlayerController
controller: zigbee2mqtt/mediacontroller1/action
integration: mqtt
media_player: media_player.stue_2
volume_steps: 15
delay: 250
gardinh:
module: controllerx
class: E1766CoverController
controller: sensor.gardinhkontakt_action
integration: z2m
cover: cover.cover_r
check_config:
module: checkconfig
class: CheckConfig
Any suggestiions?
Hello!
I have one question regarding the Aqara cube. Is it possible to have actions for specific sides of the cube? As I see in the docs, I can only get an event into which direction it is rotated.
I saw this page: https://smart-home-assistant.de/radio-xiaomi-cube-steuern/ where someone used the different sides for different radio stations. And it seems he gets messages which side is up.
@wessller those warnings in your log startup are normal.
You should verify that you are still getting events in z2m as this is probably the cause.
My E1766 are flakey with zha
and decide to just drop out randomly when they feel like it…
Hi
I am a new to controller x and it seems it does everything I want it to but I just cannot get it to work, so I am hoping you good guys can help me out!
To give a bit of background I am fairly newish to HA and have had it up and running for a few months now using a RP4.
What I am trying to do:
I have bought a load of lights from Lidl, bought the gateway and then assumed that buying anything zigbee would just work… Well I have learned that’s not the case and that HA might come to my rescue. (Wow what a learning curve but what a community I might add to help!)
What I was hoping to do is to blank off all my home switches and replace them with remotes instead. That way I can automate, I can use google assistant, I can use an app on the phone but for those times that people are in my house and not capable of using anything else, have a remote up to act as a light switch. However trying to find compatible zigbee switches to work with these bulbs is like trying to find rocking horse dung. There is little out there that doesn’t work with its own gateway and its a nightmare.
Then I came across the fact that IKEA was doing zigbee and bought a few bulbs and a remote. I had thought it would be a simple case of getting the IKEA gateway and adding devices in there and using the integration to use a remote with my Tuya Smartlife bulbs. (I am writing this knowing there are going to be a few of you laughing now… hindsight is such a good thing!)
So to confirm. I want my IKEA remotes to work with my Tuya bulbs around the house.
What I have done so far:
Installed HACS
Setup Zigbee2mqtt (using Mosquito as a broker)
Setup AppDaemon 4
Added controllerx via hacs (see below for issue with standard instructions)
So a bit of research later just got my cc2531 flashed for use with MQTT. I have just setup and paired my Tradfri E1810 using Zigbee2mqtt and I can confirm that it is receiving the states when I do a debug:
I then followed the instructions on setting up controllerx. I installed AppDaemon 4, then opened up the hacs integration and enabled the tickbox for “Enable AppDaemon apps discovery & tracking”
I then proceeded to add controllerx from hacs using the following instructions:
Now I dont know if this is my first issue, however when I look under automations controllerx is not there.
It is however under frontend:
So undeterred I added this. I then created the configuration in /config/appdaemon/apps/apps.yaml and restarted AppDaemon. However the remote would not work. I then restarted HA and this made no difference. I have played around a couple of times in case there was something I may have missed or if it could only be used to alter IKEA bulbs but neither seems to work.
My Configuration
I have played around with this many times now, but my last config was with using the IKEA bulb. This is a copy of my current config:
hello_world:
module: hello
class: HelloWorld
office_controller:
module: controllerx
class: E1810Controller
controller: sensor.remote_switch_for_office_action
integration: z2m
light: light.lukes_room_bulb
Here are the devices as setup in HA:
This is how the Admin Interface stands currently following a restart of AppDaemon:
These are the logs currently from the addon log screen in HA for AppDaemon:
[s6-init] making user provided files available at /var/run/s6/etc...exited 0.
[s6-init] ensuring user provided files have correct perms...exited 0.
[fix-attrs.d] applying ownership & permissions fixes...
[fix-attrs.d] done.
[cont-init.d] executing container initialization scripts...
[cont-init.d] 00-banner.sh: executing...
-----------------------------------------------------------
Add-on: AppDaemon 4
Python Apps and Dashboard using AppDaemon 4.x for Home Assistant
-----------------------------------------------------------
Add-on version: 0.6.2
You are running the latest version of this add-on.
System: Home Assistant OS 6.2 (aarch64 / raspberrypi4-64)
Home Assistant Core: 2021.8.1
Home Assistant Supervisor: 2021.06.8
-----------------------------------------------------------
Please, share the above information when looking for help
or support in, e.g., GitHub, forums or the Discord chat.
-----------------------------------------------------------
[cont-init.d] 00-banner.sh: exited 0.
[cont-init.d] 01-log-level.sh: executing...
[cont-init.d] 01-log-level.sh: exited 0.
[cont-init.d] appdaemon.sh: executing...
[cont-init.d] appdaemon.sh: exited 0.
[cont-init.d] done.
[services.d] starting services
[services.d] done.
[13:39:01] INFO: Starting AppDaemon...
2021-08-05 14:39:03.816387 INFO AppDaemon: AppDaemon Version 4.0.8 starting
2021-08-05 14:39:03.816842 INFO AppDaemon: Python version is 3.8.10
2021-08-05 14:39:03.818509 INFO AppDaemon: Configuration read from: /config/appdaemon/appdaemon.yaml
2021-08-05 14:39:03.819737 INFO AppDaemon: Added log: AppDaemon
2021-08-05 14:39:03.820664 INFO AppDaemon: Added log: Error
2021-08-05 14:39:03.820998 INFO AppDaemon: Added log: Access
2021-08-05 14:39:03.821309 INFO AppDaemon: Added log: Diag
2021-08-05 14:39:03.876210 INFO AppDaemon: Loading Plugin HASS using class HassPlugin from module hassplugin
2021-08-05 14:39:03.964134 INFO HASS: HASS Plugin Initializing
2021-08-05 14:39:03.964786 INFO HASS: HASS Plugin initialization complete
2021-08-05 14:39:03.967018 INFO AppDaemon: Initializing HTTP
2021-08-05 14:39:03.968855 INFO AppDaemon: Using 'ws' for event stream
2021-08-05 14:39:03.977719 INFO AppDaemon: Starting API
2021-08-05 14:39:03.987676 INFO AppDaemon: Starting Admin Interface
2021-08-05 14:39:03.989283 INFO AppDaemon: Starting Dashboards
2021-08-05 14:39:04.033095 INFO HASS: Connected to Home Assistant 2021.8.1
2021-08-05 14:39:04.064597 INFO AppDaemon: App 'hello_world' added
2021-08-05 14:39:04.070630 INFO AppDaemon: App 'office_controller' added
2021-08-05 14:39:04.072964 INFO AppDaemon: Found 2 total apps
2021-08-05 14:39:04.074604 INFO AppDaemon: Starting Apps with 2 workers and 2 pins
2021-08-05 14:39:04.077397 INFO AppDaemon: Running on port 5050
2021-08-05 14:39:04.213900 INFO HASS: Evaluating startup conditions
2021-08-05 14:39:04.238261 INFO HASS: Startup condition met: hass state=RUNNING
2021-08-05 14:39:04.239533 INFO HASS: All startup conditions met
2021-08-05 14:39:04.292723 INFO AppDaemon: Got initial state from namespace default
2021-08-05 14:39:06.092483 INFO AppDaemon: Scheduler running in realtime
2021-08-05 14:39:06.101358 INFO AppDaemon: Adding /config/appdaemon/apps to module import path
2021-08-05 14:39:06.106766 INFO AppDaemon: Loading App Module: /config/appdaemon/apps/hello.py
2021-08-05 14:39:06.121851 INFO AppDaemon: Initializing app hello_world using class HelloWorld from module hello
2021-08-05 14:39:06.339156 INFO hello_world: Hello from AppDaemon
2021-08-05 14:39:06.341995 INFO hello_world: You are now ready to run Apps!
2021-08-05 14:39:06.345636 INFO AppDaemon: App initialization complete
2021-08-05 14:39:07.182731 INFO AppDaemon: New client Admin Client connected
2021-08-05 14:39:14.985155 INFO AppDaemon: Client disconnection from Admin Client
2021-08-05 14:39:15.334779 INFO AppDaemon: New client Admin Client connected
HELP!
I really don’t understand what I am doing wrong here. Taking the Tuya integration out of the equation for the minute (BTW I am using the new v2 Tuya in beta but I know from creating my own rough and ready automation I can at least use the remote to turn a light on) I would expect that I would be able to turn the IKEA light on itself.
So I guess the main question I have is should this work with any light that has been integrated into HA or do I have to add the bulbs into zigbee2mqtt for this to work? (I am assuming the former) If not then I would appreciate some help to get me over this. I really hope that I am doing something silly and that its a small detail that I have missed, but if not then I am very willing to work with whomever to get this working. I have a number of bulbs that I need to setup using this method and that I have bought IKEA remotes for!!!
Oh and before I forget the following are my system details:
Im really stuck and have probably spent about 5-6 hours trying to get this to work now, and so in advance I appreciate any and all help given.
Cheers
Phill
Hi @carsten_h,
I believe it is technically possible (as shown in the video), but ControllerX does not support that. Which integration are you using? I have the cube and I could investigate if it is possible.
Regards,
Xavi M.
I am using deCONZ.
Hi @deadphill,
According to the logs you sent from AppDaemon, the ControllerX is not installed properly since it has not been imported. I believe the problem is from HACS since ControllerX should be under Automations, not Frontend… However, I checked in my local instance and I see ControllerX in the Automation tab.
Can you check if there is a folder called controllerx in /config/appdaemon/apps/controllerx ?
Regards,
Xavi M.
Hi @xaviml and thanks for getting back to me so quickly!
I knew it was something to do with that as you explicitly said it should be in automations and it was showing under frontend… Still dont know what thats about!
There is no folder in that directory called controllerx. What should I do to rectify this?
Cheers
Phill
I would recommend you either of this:
- Reinstall HACS
- Install ControllerX manually as described in the Installation page: Installation | ControllerX. You might need to do this with either Samba integration or the terminal one.
Ill give that a go and let you know.
Thanks for your help so far! Its much appreciated!
Cheers
Phill
I can verify that my E1766 does indeed send commands via mqtt. I use MQTT Explorer to monitor activity, and can clearly see the “action” command being send.
However i have since found out that not all entites are “shown” for my covers. Not sure how to fix that. As you can see below the “cover” entity is now present, and i can not control my blinds any more. When i add the covers to a lovelace widget i am unable to control them. But when i chen in zigbee2mqtt controlpanle i can control them just fine there.
Entity view:
Zigbee2mqtt view:
LL view:
Hi @wessller,
Could you please send the z2m and appdaemon logs when the button is pressed? Which is the configuration is giving you problems? gardinh
this one?
Regards,
I found out i needed to update my Zigbee2mqtt. I missed the fact that a new Repo had been announced:
Will try this first.
Found the solution here:
You beauty @xaviml thats worked a treat! Its exactly what I was after… now to configure all the other switches!!
One thing and I dont know if this is my issue but I hear my controller isnt that great. Sometimes it misses the input from the remote and I have to click it a few times. Is this normal if its pressed too many times?
Either way its great, thank you for the help. I knew it had to be something simple!
Cheers
Phill
Hi Phil,
Glad that it worked!
I have the same controllers as you and I do not have any problems with them. Do you see the inputs also missing in the zigbee2mqtt logs?
Regards,