Closed Mrcuddles closed 1 year ago
You will need to fix the titiles to the naming convention. Also could you explain the difference between the two hold actions?
Also the button height doesn't need to be in there for shape circle... Infact no position/shape is needed for single buttons
This button is slightly confusing. When it's pressed once (payload on) and you then hold the button it will send the following:
info 2023-01-11 20:57:54MQTT publish: topic 'zigbee2mqtt/Badkamer knop/action', payload 'on' info 2023-01-11 20:57:59MQTT publish: topic 'zigbee2mqtt/Badkamer knop/action', payload 'brightness_step_up' info 2023-01-11 20:58:00MQTT publish: topic 'zigbee2mqtt/Badkamer knop/action', payload 'brightness_step_up' info 2023-01-11 20:58:01MQTT publish: topic 'zigbee2mqtt/Badkamer knop/action', payload 'brightness_step_up' info 2023-01-11 20:58:02MQTT publish: topic 'zigbee2mqtt/Badkamer knop/action', payload 'brightness_step_down' info 2023-01-11 20:58:03MQTT publish: topic 'zigbee2mqtt/Badkamer knop/action', payload 'brightness_step_down' info 2023-01-11 20:58:04MQTT publish: topic 'zigbee2mqtt/Badkamer knop/action', payload 'brightness_step_down' info 2023-01-11 20:58:05MQTT publish: topic 'zigbee2mqtt/Badkamer knop/action', payload 'brightness_step_down' info 2023-01-11 20:58:05MQTT publish: topic 'zigbee2mqtt/Badkamer knop/action', payload 'brightness_step_up' info 2023-01-11 20:58:06MQTT publish: topic 'zigbee2mqtt/Badkamer knop/action', payload 'brightness_step_up' info 2023-01-11 20:58:07MQTT publish: topic 'zigbee2mqtt/Badkamer knop/action', payload 'brightness_step_up' info 2023-01-11 20:58:08MQTT publish: topic 'zigbee2mqtt/Badkamer knop/action', payload 'brightness_step_up' info 2023-01-11 20:58:09MQTT publish: topic 'zigbee2mqtt/Badkamer knop/action', payload 'brightness_step_down' info 2023-01-11 20:58:10MQTT publish: topic 'zigbee2mqtt/Badkamer knop/action', payload 'brightness_step_down' info 2023-01-11 20:58:11MQTT publish: topic 'zigbee2mqtt/Badkamer knop/action', payload 'brightness_step_down' info 2023-01-11 20:58:12MQTT publish: topic 'zigbee2mqtt/Badkamer knop/action', payload 'brightness_step_down' info 2023-01-11 20:58:13MQTT publish: topic 'zigbee2mqtt/Badkamer knop/action', payload 'brightness_step_up' info 2023-01-11 20:58:14MQTT publish: topic 'zigbee2mqtt/Badkamer knop/action', payload 'brightness_step_up' info 2023-01-11 20:58:14MQTT publish: topic 'zigbee2mqtt/Badkamer knop/action', payload 'brightness_stop'
It will loop 3x up, 4x down, 4x up, 4x down, 4x up, etc until you release the button which sends a brightness_stop.
When the button is double pressed (payload off) it will do the following: info 2023-01-11 21:01:02MQTT publish: topic 'zigbee2mqtt/Badkamer knop/action', payload 'off' info 2023-01-11 21:01:09MQTT publish: topic 'zigbee2mqtt/Badkamer knop/action', payload 'brightness_stop'
No brightness_step_up nor brightness_step_down, just brightness_stop after releasing.
This behavior isn't documented anywhere, but useful. Do you have any advice in detailing this behavior to the end user?
Yh i did a bit of research after seeing this pull request and the FW for the device is a bit weird. Just want to make the parts in backets ( )
shorter really and hold release should be hold (released)... The problem with switches and blueprints for them is that some devices are just not following a norm (Ikea does this too sometimes). I see it that if a person already owns that device, then they should be aware that you need to do 4x up and 4x down etc. so is there a more generic way to say just up or down etc.?
What do you think of this?
That's better, Just one more thing, the latest update I have invalidated blueprints with the shape param because it's not needed and people leave it in with extra params that don't relate to their shape. So just remove the shape: circle then I can merge.
On second look, you need to remove all params relating to a shape as I have also invalidated single button switches to have no shape params as it's simply not needed and redundant.
Here you go :)
Thank You!
Blueprint Checklist