TheHolyRoger / THR_HA_Blueprints

6 stars 0 forks source link

One Light returns to previous state #1

Open mdeweerd opened 11 months ago

mdeweerd commented 11 months ago

Hi

I tested the moes_scene_switch_multi_press.yaml blueprint with zigbee light and I get an on command followed by a off command immediately (or vice versa) - so the light returns to the initial state.

I guess you're more familiar with the blueprint so you might spot the reason immediately. This does not happen with a simple on/off command. trace automation.exterieur_3_button 2023-10-16T20_20_57.606094+00_00.json

This is the trace for the configuration further below.

Configuration:

id: '1697486579369'
alias: Exterieur-3-button
description: Lampe Exterieur 3 boutons (miliue)
use_blueprint:
  path: TheHolyRoger/moes_scene_switch_multi_press.yaml
  input:
    controller_device: c831e7fdf18d22b927bf0f3ef9703186
    button_endpoint_id: 2
    helper_last_controller_event: input_text.last_state_3button_2
    controlled_light_entity: light.tz3000_utagpnzs_ts0505a_level_light_color_on_off
    button_multi_press_enabled: true
    button_toggle_controlled_light_entity_first_press: true
TheHolyRoger commented 9 months ago

Hi @mdeweerd can you tell me which device you're using?

mdeweerd commented 9 months ago

Hi The MOES 3-button device is reported in zigbee as: TS0043 by _TZ3000_gbm10jnj .

The quirk provides specific events for the buttons, so I am now using that: image

There were are also isuse with the double/tripple button presses - the behavior when the buttons have been untouched for a while was different compared to when a sequence was just triggered (I believe a double press when first triggered had the one button press effect, and then repeating that immediately had the desired effect).

My guess is that the quirk kind of interferes with the automation.

TheHolyRoger commented 9 months ago

@mdeweerd unfortunately the MOES buttons only "kind of" work with my blueprint, you have to time your button presses long enough to avoid the "double press" action of MOES being triggered internally.

Are you still using my blueprint or did you give up?

mdeweerd commented 9 months ago

I am not using the blueprint as I found another solution that works - I do not "give up" as such, I might try the blueprint for more presses in a future time.

What is important to me is that you apparently know about this and I am on the same wavelength for the analysis.

I conclude hat the blueprint is not usable for double presses for this device.

TheHolyRoger commented 9 months ago

@mdeweerd what I could do is add an option to only use the 1 and 2 press actions of the MOES button, which might work better for you

mdeweerd commented 9 months ago

Don't do it for me, bu tit may be useful for others - I can test it.