offline71
Čuven
- Učlanjen(a)
- 09.01.2010
- Poruke
- 2,102
- Poena
- 535
Ne znam koliko je pitanje za ovu temu,al ajde 🙂 Kodi+RD.
Za mene,najjednostavnije i najbolje rešenje.i zašto?
Što bi se reklo,neće me Matter videti 🙂 bar za prekidače.***,treba 72 linije koda,banalizujem,za najprostiju automatiku.Mora ovako, ako neces da ucitas Blueprint:
Pogledajte prilog 524356
Option 2: Manual Automation (The "State" Trigger)
If you want to build it yourself, you cannot use the "Device" trigger. You must use a State Trigger pointing to the button's event entity.
- Trigger: Select State.
- Entity: Look for event.bilresa_... (e.g., event.bilresa_dual_button_knop_1).
- Attribute: Leave "To" and "From" blank. This ensures the automation fires every time the timestamp updates (every press).
- Action: Use a Chooseblock to check which button was pressed.
- Condition: State
- Entity: (Same event entity)
- Attribute: event_type
- State: multi_press_1 (for single press), multi_press_2 (for double), or long_press.
alias: Bilresa test
description: ""
triggers:
- trigger: state
entity_id:
- event.bilresa_dual_button_button_1
conditions:
- condition: state
entity_id: event.bilresa_dual_button_button_1
state:
- multi_press_1
attribute: event_type
actions:
- action: light.toggle
metadata: {}
target:
entity_id: light.radni_sto
data: {}
mode: single





