Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[NEW DEVICE] Hue wall switch module #276

Closed
yveshass opened this issue Apr 12, 2021 · 23 comments
Closed

[NEW DEVICE] Hue wall switch module #276

yveshass opened this issue Apr 12, 2021 · 23 comments
Assignees
Labels
new-device New device

Comments

@yveshass
Copy link

  • Device Model: RDM001
  • Device Description: Hue wall switch module
  • Device Manufacturer: Signify Netherlands B.V. (previously known as Philips)

deCONZ
1000 → Click
1001 → Hold
1002 → Click release
1003 → Hold release
2000 → Click
2001 → Hold
2002 → Click release
2003 → Hold release

"Taken from dresden-elektronik/deconz-rest-plugin#4566

devicemode | first input | second input
singlerocker | 1000, 1002 | --
singlepushbutton | 1000, 1001, 1002, 1003 | --
dualrocker | 1000, 1002 | 2000, 2002
dualpushbutton | 1000, 1001, 1002, 1003 | 2000, 2001, 2002, 2003

When configured as rocker, it will issue a x000/x002 each time you flip the rocker (to either position). The event duration for the x002 is 1 (for 100ms), but lastupdated suggests it follows the x000 faster than that.

When configured as pushbutton, it will issue a x000/x002 sequence on press/release, and an x000/x001/.../x001/x003 on press/hold/release, similar to the Hue dimmer switch and the Hue smart button. The eventduration increased with 8 for each x001, and they are issued pretty much every 800ms."

Notes

Click → Toggle
Hold → Brightness up/down with direction changes (only applicable if configured as pushbutton)

@yveshass yveshass added the new-device New device label Apr 12, 2021
@oscfor
Copy link

oscfor commented Apr 14, 2021

Can we include it in z2m as well?

MQTT publish: topic 'zigbee2mqtt/Vind - rörelse', payload '{"battery":100,"linkquality":0,"occupancy":true,"voltage":3005}'
Info MQTT publish: topic 'zigbee2mqtt/Badrum knapp', payload '{"action":"left_press","battery":100,"device_mode":null,"linkquality":0,"update":{"state":"idle"}}'
Info MQTT publish: topic 'zigbee2mqtt/Badrum knapp', payload '{"action":"","battery":100,"device_mode":null,"linkquality":0,"update":{"state":"idle"}}'
Info MQTT publish: topic 'zigbee2mqtt/Badrum knapp/action', payload 'left_press'
Info MQTT publish: topic 'zigbee2mqtt/Badrum knapp', payload '{"action":"left_press_release","battery":100,"device_mode":null,"linkquality":0,"update":{"state":"idle"}}'
Info MQTT publish: topic 'zigbee2mqtt/Badrum knapp', payload '{"action":"","battery":100,"device_mode":null,"linkquality":0,"update":{"state":"idle"}}'
Info MQTT publish: topic 'zigbee2mqtt/Badrum knapp/action', payload 'left_press_release'
Info MQTT publish: topic 'zigbee2mqtt/Badrum knapp', payload '{"action":"left_press","battery":100,"device_mode":null,"linkquality":0,"update":{"state":"idle"}}'
Info MQTT publish: topic 'zigbee2mqtt/Badrum knapp', payload '{"action":"","battery":100,"device_mode":null,"linkquality":0,"update":{"state":"idle"}}'
Info MQTT publish: topic 'zigbee2mqtt/Badrum knapp/action', payload 'left_press'
Info MQTT publish: topic 'zigbee2mqtt/Badrum knapp', payload '{"action":"left_press_release","battery":100,"device_mode":null,"linkquality":0,"update":{"state":"idle"}}'
Info MQTT publish: topic 'zigbee2mqtt/Badrum knapp', payload '{"action":"","battery":100,"device_mode":null,"linkquality":0,"update":{"state":"idle"}}'
Info MQTT publish: topic 'zigbee2mqtt/Badrum knapp/action', payload 'left_press_release'

MQTT publish: topic 'zigbee2mqtt/Vind - rörelse', payload '{"battery":100,"linkquality":0,"occupancy":true,"voltage":3005}'
Info MQTT publish: topic 'zigbee2mqtt/Badrum knapp', payload '{"action":"left_press","battery":100,"device_mode":null,"linkquality":0,"update":{"state":"idle"}}'
Info MQTT publish: topic 'zigbee2mqtt/Badrum knapp', payload '{"action":"","battery":100,"device_mode":null,"linkquality":0,"update":{"state":"idle"}}'
Info MQTT publish: topic 'zigbee2mqtt/Badrum knapp/action', payload 'left_press'
Info MQTT publish: topic 'zigbee2mqtt/Badrum knapp', payload '{"action":"left_press_release","battery":100,"device_mode":null,"linkquality":0,"update":{"state":"idle"}}'
Info MQTT publish: topic 'zigbee2mqtt/Badrum knapp', payload '{"action":"","battery":100,"device_mode":null,"linkquality":0,"update":{"state":"idle"}}'
Info MQTT publish: topic 'zigbee2mqtt/Badrum knapp/action', payload 'left_press_release'
Info MQTT publish: topic 'zigbee2mqtt/Badrum knapp', payload '{"action":"left_press","battery":100,"device_mode":null,"linkquality":0,"update":{"state":"idle"}}'
Info MQTT publish: topic 'zigbee2mqtt/Badrum knapp', payload '{"action":"","battery":100,"device_mode":null,"linkquality":0,"update":{"state":"idle"}}'
Info MQTT publish: topic 'zigbee2mqtt/Badrum knapp/action', payload 'left_press'
Info MQTT publish: topic 'zigbee2mqtt/Badrum knapp', payload '{"action":"left_press_release","battery":100,"device_mode":null,"linkquality":0,"update":{"state":"idle"}}'
Info MQTT publish: topic 'zigbee2mqtt/Badrum knapp', payload '{"action":"","battery":100,"device_mode":null,"linkquality":0,"update":{"state":"idle"}}'
Info MQTT publish: topic 'zigbee2mqtt/Badrum knapp/action', payload 'left_press_release'

Info MQTT publish: topic 'homeassistant/device_automation/0x001788010b0028a3/action_right_press_release/config', payload '{"automation_type":"trigger","device":{"identifiers":["zigbee2mqtt_0x001788010b0028a3"],"manufacturer":"Philips","model":"Hue wall switch module (929003017102)","name":"Badrum knapp","sw_version":"Zigbee2MQTT 1.18.2-dev"},"payload":"right_press_release","subtype":"right_press_release","topic":"zigbee2mqtt/Badrum knapp/action","type":"action"}'

Info MQTT publish: topic 'homeassistant/device_automation/0x001788010b0028a3/action_left_hold/config', payload '{"automation_type":"trigger","device":{"identifiers":["zigbee2mqtt_0x001788010b0028a3"],"manufacturer":"Philips","model":"Hue wall switch module (929003017102)","name":"Badrum knapp","sw_version":"Zigbee2MQTT 1.18.2-dev"},"payload":"left_hold","subtype":"left_hold","topic":"zigbee2mqtt/Badrum knapp/action","type":"action"}'

@xaviml
Copy link
Owner

xaviml commented Apr 14, 2021

Hi @yveshass and @oscfor,

Thank you for opening the issue. I will be adding this device for both integrations for the next release.

Regards,
Xavi M.

@xaviml
Copy link
Owner

xaviml commented Apr 28, 2021

Hi @oscfor,

I see in the zigbee2mqtt documentation and your logs that available actions are: "left_press, left_press_release, right_press, right_press_release". deCONZ has press, hold, and release for left and right (6 in total). However, for z2m I only see 4, so wondering which ones are they since hold does not make sense without a release.

Cheers,

@oscfor
Copy link

oscfor commented May 3, 2021

Hi @xaviml

I have now tried again. Now I also get the "hold" state and "hold_release"

Info MQTT publish: topic 'zigbee2mqtt/Badrum knapp', payload '{"action":"left_hold","battery":100,"device_mode":"dual_push_button","linkquality":42,"update":{"state":"idle"}}'
Info MQTT publish: topic 'zigbee2mqtt/Badrum knapp', payload '{"action":"","battery":100,"device_mode":"dual_push_button","linkquality":42,"update":{"state":"idle"}}'
Info MQTT publish: topic 'zigbee2mqtt/Badrum knapp/action', payload 'left_hold'
Info MQTT publish: topic 'zigbee2mqtt/Badrum knapp', payload '{"action":"left_hold","battery":100,"device_mode":"dual_push_button","linkquality":39,"update":{"state":"idle"}}'
Info MQTT publish: topic 'zigbee2mqtt/Badrum knapp', payload '{"action":"","battery":100,"device_mode":"dual_push_button","linkquality":39,"update":{"state":"idle"}}'
Info MQTT publish: topic 'zigbee2mqtt/Badrum knapp/action', payload 'left_hold'
Info MQTT publish: topic 'zigbee2mqtt/Badrum knapp', payload '{"action":"left_hold","battery":100,"device_mode":"dual_push_button","linkquality":39,"update":{"state":"idle"}}'
Info MQTT publish: topic 'zigbee2mqtt/Badrum knapp', payload '{"action":"","battery":100,"device_mode":"dual_push_button","linkquality":39,"update":{"state":"idle"}}'
Info MQTT publish: topic 'zigbee2mqtt/Badrum knapp/action', payload 'left_hold'
Info MQTT publish: topic 'zigbee2mqtt/Badrum knapp', payload '{"action":"left_hold","battery":100,"device_mode":"dual_push_button","linkquality":42,"update":{"state":"idle"}}'
Info MQTT publish: topic 'zigbee2mqtt/Badrum knapp', payload '{"action":"","battery":100,"device_mode":"dual_push_button","linkquality":42,"update":{"state":"idle"}}'
Info MQTT publish: topic 'zigbee2mqtt/Badrum knapp/action', payload 'left_hold'
Info MQTT publish: topic 'zigbee2mqtt/Badrum knapp', payload '{"action":"left_hold_release","battery":100,"device_mode":"dual_push_button","linkquality":39,"update":{"state":"idle"}}'
Info MQTT publish: topic 'zigbee2mqtt/Badrum knapp', payload '{"action":"","battery":100,"device_mode":"dual_push_button","linkquality":39,"update":{"state":"idle"}}'
Info MQTT publish: topic 'zigbee2mqtt/Badrum knapp/action', payload 'left_hold_release'

xaviml added a commit that referenced this issue May 3, 2021
@xaviml
Copy link
Owner

xaviml commented May 3, 2021

Device added in ControllerX v4.11.0

@xaviml xaviml closed this as completed May 3, 2021
@JDFS404
Copy link

JDFS404 commented May 14, 2021

Nice @xaviml for adding this, I just bought a couple of them and also have double push buttons (Jung 535EU). So I just set up the integration in apps.yaml but I was wondering, could you maybe change some settings to utilize the dual_push_button element of the Switch? I.e. left_press is for light1/group1 and right_press is for light2/group2? Because I just added the Switch and with both push buttons it's controlling only 1 group. Let me know your thoughts on this and how we can practical deal with this?

Btw thanks for making ControllerX, it's really really cool and so much better that I even tossed the Hue Bridge out of the equation!

@xaviml
Copy link
Owner

xaviml commented May 14, 2021

Hi @JDFS404,

ControllerX was first design that one app controls 1 light or group of lights, so with just using one app you cannot control different lights with different states. However, this doesn't mean you cannot configure it with 2 apps pointing to the same controller. This is an example of this controller using the left actions for 1 light, and the right actions for another light:

example_app_light_1:
  module: controllerx
  class: Philips929003017102LightController
  controller: sensor.your_controller_action
  integration: z2m
  light: light.light_1
  actions: [left_press, left_hold, left_hold_release]

example_app_light_2:
  module: controllerx
  class: Philips929003017102LightController
  controller: sensor.your_controller_action
  integration: z2m
  light: light.light_2
  actions: [right_press, rightt_hold, right_hold_release]

Hope this helps :)

Regards,
Xavi M.

@JDFS404
Copy link

JDFS404 commented May 16, 2021

Perfect @xaviml this is what I was looking for! On another note, I am in the process of figuring it out, but need some guidance; I have another Hue Smart Switch close my entrance that I want to use as a master switch to toggle ALL my lights (in my group.lights_all). However, I want the switch to kill all the lights and not toggle it, i.e. if the kitchen lights are on and the rest is off, I don’t want this switch to turn on all the lights but NOT the kitchen lights (since they’re on they’re toggled to off). I think I have to do something with mapping, but perhaps you can help me out!

@xaviml
Copy link
Owner

xaviml commented May 21, 2021

Hi @JDFS404,

The Hue Smart switch already calls "on" and "off", and not "toogle". So could you please show your ControllerX config, so I can point you to how to fix this problem? To do so, you would need to use merge_mapping and change the event action to off. You can read more about it here.

Regards,
Xavi M.

@JDFS404
Copy link

JDFS404 commented May 21, 2021

Thanks again Xavi, perhaps I should look into merge_mapping combined with the actions for the right- and left presses. This is my code now for the different Hue Switch modules. I tried something with merge_mapping, but I got errors when combining it with the action right- and left presses. Curious how this can be solved :) :

# Configuration check
check_config:
  module: checkconfig
  class: CheckConfig

# Lampen en groepen
slaapkamer_controller:
  module: controllerx
  class: E1744LightController
  controller: zigbee2mqtt/IKEA Symfonisk/action
  integration: mqtt
  smooth_power_on: true
  light: group.slaapkamer_light
  
# Slimme muurschakelaars
woonkamer_switch_1:
  module: controllerx
  class: Philips929003017102LightController
  controller: zigbee2mqtt/schakelaar_woonkamer_1/action
  integration: mqtt
  light: group.all_light
  actions: [right_press, right_hold, right_hold_release]
  
woonkamer_switch_2:
  module: controllerx
  class: Philips929003017102LightController
  controller: zigbee2mqtt/schakelaar_woonkamer_1/action
  integration: mqtt
  light: group.keuken_light
  actions: [left_press, left_hold, left_hold_release]
  
woonkamer_switch_3:
  module: controllerx
  class: Philips929003017102LightController
  controller: zigbee2mqtt/schakelaar_woonkamer_2/action
  integration: mqtt
  light: group.woonkamer_light
  actions: [right_press, right_hold, right_hold_release]
  
switch_woonkamer_4:
  module: controllerx
  class: Philips929003017102LightController
  controller: zigbee2mqtt/schakelaar_woonkamer_2/action
  integration: mqtt
  light: group.eettafel_light
  actions: [left_press, left_hold, left_hold_release]
  
switch_eettafel:
  module: controllerx
  class: Philips929003017102LightController
  controller: zigbee2mqtt/schakelaar_eettafel/action
  integration: mqtt
  light: group.eettafel_light
  actions: [right_press, right_hold, right_hold_release]
  
switch_gang:
  module: controllerx
  class: Philips929003017102LightController
  controller: zigbee2mqtt/schakelaar_gang/action
  integration: mqtt
  light: light.gang
  actions: [right_press, right_hold, right_hold_release]

switch_all:
  module: controllerx
  class: Philips929003017102LightController
  controller: zigbee2mqtt/schakelaar_gang/action
  integration: mqtt
  light: group.all_light
  actions: [left_press, left_hold, left_hold_release]

switch_slaapkamer_1:
  module: controllerx
  class: Philips929003017102LightController
  controller: zigbee2mqtt/schakelaar_slaapkamer/action
  integration: mqtt
  light: light.hue_bureau
  actions: [left_press, left_hold, left_hold_release]

switch_slaapkamer_2:
  module: controllerx
  class: Philips929003017102LightController
  controller: zigbee2mqtt/schakelaar_slaapkamer/action
  integration: mqtt
  light: group.slaapkamer_light
  actions: [right_press, right_hold, right_hold_release]

@xaviml
Copy link
Owner

xaviml commented May 21, 2021

Hi @JDFS404,

Sorry for the confusion... I thought you were referring to the standard Hue Dimmer Switch. But you mean the switch module (which is the one from this ticket..). Don't know what I was thinking haha

You have these options to solve this, and they imply using the merge_mapping (o mapping):

  • Use left click to turn off and right click to turn on (or vice versa).
  • Use click to turn on and long press to turn off (or vice versa).

Since I see you use left and right separately, then, I would show you the second option:

switch_all:
  module: controllerx
  class: Philips929003017102LightController
  controller: zigbee2mqtt/schakelaar_gang/action
  integration: mqtt
  light: group.all_light
  mapping:
    left_press: "on"
    left_hold: "off"

The mapping will remove the default mapping and define the mapping define in the mapping attribute. The problem of this solution is that you lose the ability to dim the lights. So if you still want to dim the lights, then you could use double click (a functionality from ControllerX - https://xaviml.github.io/controllerx/advanced/multiple-clicks):

switch_all:
  module: controllerx
  class: Philips929003017102LightController
  controller: zigbee2mqtt/schakelaar_gang/action
  integration: mqtt
  light: group.all_light
  merge_mapping:
    left_press: "on"
    left_press$2: "off"

So 1 click will turn on the lights and 2 clicks will turn them off. The dimming will keep working because we used merge_mapping for this configuration.

Hope this helps, and happy to help further if needed :)

Regards,
Xavi M.

@JDFS404
Copy link

JDFS404 commented May 22, 2021

Hey Xavi,

Thanks again, much appreciate your help here. Donation's coming up!

So I just added your config to apps.yaml as follows (notice that gang = hallway, schakelaar = switch... I should change all my wordings to English to make troubleshoot easier):

switch_gang:
  module: controllerx
  class: Philips929003017102LightController
  controller: zigbee2mqtt/schakelaar_gang/action
  integration: mqtt
  light: light.gang
  actions: [right_press, right_hold, right_hold_release]

switch_all:
  module: controllerx
  class: Philips929003017102LightController
  controller: zigbee2mqtt/schakelaar_gang/action
  integration: mqtt
  light: group.all_light
  mapping:
    left_press: "on"
    left_hold: "off"

switch_all:
  module: controllerx
  class: Philips929003017102LightController
  controller: zigbee2mqtt/schakelaar_gang/action
  integration: mqtt
  light: group.all_light
  merge_mapping:
    left_press: "on"
    left_press$2: "off"

So the left side of the switch is working as intended :). When I switch all lights on and switch some of them off via other switches / HA / MQTT, I double click and everything turns off! However, I now am facing the issue that also right_press is triggered via switch_all:

🤖 Service: �[1mlight.toggle�[0m
  - entity_id: group.all_light
2021-05-22 10:43:36.207343 INFO switch_all: 🏃 Running `Predefined (toggle)` now
2021-05-22 10:43:36.191882 INFO switch_gang: 

🤖 Service: �[1mlight.toggle�[0m
  - entity_id: light.gang
2021-05-22 10:43:36.091799 INFO switch_gang: 🏃 Running `Predefined (toggle)` now
2021-05-22 10:43:36.029590 INFO switch_all: 🎮 Button event triggered: `right_press`
2021-05-22 10:43:35.906389 INFO switch_gang: 🎮 Button event triggered: `right_press`
2021-05-22 10:43:35.478731 INFO switch_all: 🏃 Running `Predefined (release)` now
2021-05-22 10:43:35.443877 INFO switch_gang: 🏃 Running `Predefined (release)` now
2021-05-22 10:43:35.419729 INFO switch_all: 

I also tried adding the same code for my switch_gang with merge_mapping and right_press$2, but then the left switch is also triggered... I'm feeling we're almost there!

@xaviml
Copy link
Owner

xaviml commented May 22, 2021

Hi @JDFS404,

I see that you have 2 applications with the same name (switch_all). So, you either have one or another, depending on how you want the lights to turn on/off. Either with click and long press, or with click and double click.

Also, I do not see the right_press$2 in the configuration you shared, but it should be the same as the left one.

What I think is happening is that the configuration with merge_mapping should be changed to mapping and include the hold and release, because the right_* are also included. So:

switch_all_left:
  module: controllerx
  class: Philips929003017102LightController
  controller: zigbee2mqtt/schakelaar_gang/action
  integration: mqtt
  light: group.all_light
  mapping:
    left_press: "on"
    left_press$2: "off"
    left_hold: hold_brightness_toggle
    left_hold_release: release

switch_all_right:
  module: controllerx
  class: Philips929003017102LightController
  controller: zigbee2mqtt/schakelaar_gang/action
  integration: mqtt
  light: group.all_light
  mapping:
    right_press: "on"
    right_press$2: "off"
    right_hold: hold_brightness_toggle
    right_hold_release: release

I hope this clarifies your issues.

Regards,
Xavi M.

@JDFS404
Copy link

JDFS404 commented May 22, 2021

@xaviml you're the best! It's now working as intended - albeit with a double click instead of a single click. I think to get it with a single click (like a toggle), the configuration would be a lot more advanced but since it's only concerning one switch in the hallway, it's not a big issue.

I even incorporated a third and fourth click to get another light on or off, I used the mapping again for this. Really cool stuff :)

@xaviml
Copy link
Owner

xaviml commented May 22, 2021

Hi @JDFS404,

Glad you got it working :) If you want just the switch to toggle the light with the press, you could do it with 2 configuration. This is an example for the left actions:

switch_all_left_on:
  module: controllerx
  class: Philips929003017102LightController
  controller: zigbee2mqtt/schakelaar_gang/action
  integration: mqtt
  light: group.all_light
  mapping:
    left_press: "off"
    left_hold: hold_brightness_toggle
    left_hold_release: release
  constrain_input_boolean: group.all_light,on

switch_all_left_off:
  module: controllerx
  class: Philips929003017102LightController
  controller: zigbee2mqtt/schakelaar_gang/action
  integration: mqtt
  light: group.all_light
  mapping:
    left_press: "on"
    left_hold: hold_brightness_toggle
    left_hold_release: release
  constrain_input_boolean: group.all_light,off

So the first configuration would work only when the group.all_light is on, so when pressed, it would turn off the lights. And the second configuration would only work when the lights are off, so when pressed, it would turn the lights on. In the case of having 1 light on and the rest off, the group.all_light would be on by default in Home Assistant, so all the lights (well, just the single light it was on) would turn off when pressed. No light should be turned on in this case as you were experiencing.

Hope this suits you better since no double click is needed, just the single as you were seeking.

Regards,
Xavi M.

@JDFS404
Copy link

JDFS404 commented May 23, 2021

I think this would be perfect, but do I need to set up an input boolean for that - I guess not due to calling the group and not an input.boolean but I get the following error:

2021-05-23 21:45:35.772475 WARNING AppDaemon: ------------------------------------------------------------
2021-05-23 21:45:35.772015 WARNING AppDaemon: Traceback (most recent call last):
  File "/usr/local/lib/python3.8/site-packages/appdaemon/events.py", line 225, in process_event
    await self.process_event_callbacks(namespace, data)
  File "/usr/local/lib/python3.8/site-packages/appdaemon/events.py", line 330, in process_event_callbacks
    executed = await self.AD.threading.dispatch_worker(
  File "/usr/local/lib/python3.8/site-packages/appdaemon/threading.py", line 731, in dispatch_worker
    constrained = await self.check_constraint(
  File "/usr/local/lib/python3.8/site-packages/appdaemon/threading.py", line 553, in check_constraint
    unconstrained = await utils.run_async_sync_func(self, method, value)
  File "/usr/local/lib/python3.8/site-packages/appdaemon/utils.py", line 329, in run_async_sync_func
    result = await run_in_executor(self, method, *args, **kwargs)
  File "/usr/local/lib/python3.8/site-packages/appdaemon/utils.py", line 299, in run_in_executor
    response = future.result()
  File "/usr/local/lib/python3.8/concurrent/futures/thread.py", line 57, in run
    result = self.fn(*self.args, **self.kwargs)
  File "/usr/local/lib/python3.8/site-packages/appdaemon/plugins/hass/hassapi.py", line 319, in constrain_input_boolean
    if entity in state and state[entity]["state"] != desired_state:
TypeError: argument of type 'coroutine' is not iterable

Come to think of it, I think this is due to me talking directly to MQTT and skipping HA right? I will try with z2m instead of mqtt.

@xaviml
Copy link
Owner

xaviml commented May 23, 2021

Hi @JDFS404,

No, you don't need an input_boolean for this. It's just that the field is called constrain_input_boolean, but you need to pass the group.all_light.

The problem you are getting is not on your side. It is a bug (#307) that I fixed in v4.11.2. So upgrade to the latest version and restart AppDaemon server/addon.

Regards,
Xavi M.

@JDFS404
Copy link

JDFS404 commented May 24, 2021

@xaviml You're the man. This is it. This is perfect :) Thanks so much for all the help - I will now dabble with multiple clicks and also try to setup clicks to get me to default brightness values. The possibilities are endless 🥇 . When I left the Hue app behind, I couldn't even imagine what was all possible with a little bit of wit and creativity. You helped me spark new ideas!

@xaviml
Copy link
Owner

xaviml commented May 24, 2021

Hi @JDFS404,

Happy to know you got it all working now, and that my assistance was helpful. As you said, now the limitation is on your imagination since with the options that ControllerX provides you can configure many use cases.

If there is anything else you need, just open a question ticket, and I will happily help you out :)

Regards,
Xavi M.

@JDFS404
Copy link

JDFS404 commented Nov 15, 2021

Hi @xaviml, me again - couple of months later and still enjoying my automation journey. I have a quick question, where perhaps you have a quick answer for: the hold_brightness_toggle always first does brightness: up, however I would like it to first do brightness: down instead. Do you know if there's a quick fix for this (i.e. inverting the toggle)?

@xaviml
Copy link
Owner

xaviml commented Nov 15, 2021

Hi @JDFS404 ,

The toggle functionality always alternates from up to down. So if it went up today, tomorrow when you use it will go down.

However, the first time you use it, after restarting AppDaemon, it goes up as you indicated, but just because it needs to start in a direction after an AppDaemon restart, which should not happen often.

Would you like to change this behaviour when restarting AppDaemon?

Regards,
Xavi M.

@JDFS404
Copy link

JDFS404 commented Nov 15, 2021

A ha, that was what I'm looking for... I restart my Docker apps every night due to backups and such. So to change the default behavior when starting AppDaemon would be nice (i.e. always first go down and then go up). Reason for asking: I have an automatic adaptive lighting integration, but I notice that sometimes I dim the lights because they're too bright. I almost never make them brighter!

@xaviml
Copy link
Owner

xaviml commented Nov 15, 2021

Hi @JDFS404,

I understand now your need. Could you please create another GitHub ticket for this request as a feature request?

I will look at it for next release. I am currently overloaded at work and I bave not being giving much attention to this project. If you create the ticket I will make sure to not forget about it.

Thank you,
Xavi M.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
new-device New device
Projects
None yet
Development

No branches or pull requests

4 participants