Hi Xavi,
Congratulations for great job and building so flexible automation system for appdaemon!
I’m quite new here, but already managed to integrate few different IKEA Tradfri controllers with full success. Thanks to your well designed system.
I decided to post here, because I have stuck with my shelly 2.5 lab-solution (input-0 only, detached switch) controlling half of my chandelier (group of two z2m bulbs).
Spending few hours, I cannot understand the reason, but I have no appdaemon logs for that, nor any state change of the bulbs.
I tried this config:
pokoj_zyrandol:
module: controllerx
class: Shelly25LightController
integration: shelly
controller: shellyswitch25-C45BBE6B4D2E
light: light.pokoj_zyrandol
actions:
- single_push_1
- long_push_1
- btn_up_1
- double_push_1
merge_mapping:
long_push_1: hold_brightness_toggle
For testing purposes I also simplified above config by removing “actions” and “merge_mapping” blocks.
then this one:
pokoj_zyrandol:
module: controllerx
class: LightController
controller:
- shellies/shellyswitch25-C45BBE6B4D2E/input_event/0
light: light.pokoj_zyrandol
integration:
name: mqtt
key: event
mapping:
"S": "on"
"L": "off"
No appdaemon application logs, no action. What can be the root of the issue?
my mqtt brocker reports correctly:
maj 25 18:56:19 shellies/shellyswitch25-C45BBE6B4D2E/input/0 1
maj 25 18:56:20 shellies/shellyswitch25-C45BBE6B4D2E/longpush/0 1
maj 25 18:56:20 shellies/shellyswitch25-C45BBE6B4D2E/input_event/0 {“event”:“L”,“event_cnt”:49}
maj 25 18:56:20 shellies/shellyswitch25-C45BBE6B4D2E/input/0 0
maj 25 18:56:21 shellies/shellyswitch25-C45BBE6B4D2E/input/0 1
maj 25 18:56:21 shellies/shellyswitch25-C45BBE6B4D2E/longpush/0 0
maj 25 18:56:21 shellies/shellyswitch25-C45BBE6B4D2E/input_event/0 {“event”:“S”,“event_cnt”:50}
maj 25 18:56:21 shellies/shellyswitch25-C45BBE6B4D2E/input/0 0
and HA events look like:
event_type: shelly.click
data:
device_id: d80542b9527d96bcb6688b882b7b3c1a
device: shellyswitch25-C45BBE6B4D2E
channel: 1
click_type: single
generation: 1
origin: LOCAL
time_fired: "2023-05-25T16:27:56.771676+00:00"
context:
id: 01H19VT1F39N4H4NZAJ0TKFQ0C
parent_id: null
user_id: null
For sure I overlooked something. Could you advice what I could mess up, please?
I wrote few short lines in python using mqtt API and “the appliance” works correctly. I intend to integrate the automation with your great unified solution.
Please help me here. Big thanks in advance!
Marek