Comments (3)
I gave the triggers all a unique id, and in the actions I use the if and check which trigger was used.
alias: "[Action] [Button] HomeButtons"
description: ""
trigger:
- platform: device
domain: mqtt
device_id: f1c7da1df4e124d045f9b76b9ddf9adf
type: button_short_press
subtype: button_1
discovery_id: HBTNS-2301-180-31FD62 button_1
id: 1_single
- platform: device
domain: mqtt
device_id: f1c7da1df4e124d045f9b76b9ddf9adf
type: button_short_press
subtype: button_2
discovery_id: HBTNS-2301-180-31FD62 button_2
id: 2_single
- platform: device
domain: mqtt
device_id: f1c7da1df4e124d045f9b76b9ddf9adf
type: button_short_press
subtype: button_3
discovery_id: HBTNS-2301-180-31FD62 button_3
id: 3_single
- platform: device
domain: mqtt
device_id: f1c7da1df4e124d045f9b76b9ddf9adf
type: button_short_press
subtype: button_4
discovery_id: HBTNS-2301-180-31FD62 button_4
id: 4_single
- platform: device
domain: mqtt
device_id: f1c7da1df4e124d045f9b76b9ddf9adf
type: button_short_press
subtype: button_5
discovery_id: HBTNS-2301-180-31FD62 button_5
id: 5_single
- platform: device
domain: mqtt
device_id: f1c7da1df4e124d045f9b76b9ddf9adf
type: button_short_press
subtype: button_6
discovery_id: HBTNS-2301-180-31FD62 button_6
id: 6_single
- platform: device
domain: mqtt
device_id: f1c7da1df4e124d045f9b76b9ddf9adf
type: button_double_press
subtype: button_3
discovery_id: HBTNS-2301-180-31FD62 button_3_double
id: 3_double
condition: []
action:
- if:
- condition: trigger
id: 1_single
then:
- service: input_boolean.toggle
data: {}
target:
entity_id: input_boolean.gaste
- if:
- condition: trigger
id: 2_single
then:
- event: test.test.test.test
event_data: {}
- if:
- condition: trigger
id: 3_single
then:
- service: cover.open_cover
data: {}
target:
entity_id:
- cover.405297
- cover.40528b
- if:
- condition: trigger
id: 3_double
then:
- service: cover.close_cover
data: {}
target:
entity_id:
- cover.405297
- cover.40528b
- if:
- condition: trigger
id: 4_single
then:
- service: script.fix_thermostate
data: {}
- delay:
hours: 0
minutes: 0
seconds: 3
milliseconds: 0
- service: script.thermostate_eco
data: {}
- if:
- condition: trigger
id: 5_single
then:
- service: script.fix_thermostate
data: {}
- delay:
hours: 0
minutes: 0
seconds: 3
milliseconds: 0
- service: script.thermostate_komfort
data: {}
- if:
- condition: trigger
id: 6_single
then:
- service: script.thermostate_aus
data: {}
mode: single
from homebuttons.
I tried building a blueprint, but it seems kinda complicated. The firmware uses mqtt discovery. This creates mqtt device triggers at home assisted. I found no functional way to implement that in a blueprint.
As a simple solution for not having multiple automations, I wrote all triggers into one automation, gave them each a own id and checked later in the conditions.
If you need it, i can share my yaml code.
from homebuttons.
If you need it, i can share my yaml code.
That would be great. Maybe I can start from there.
from homebuttons.
Related Issues (20)
- Request: Add ability to change URL MDIs are downloaded from HOT 2
- Mqqt Error: Mqtt Password Truncated HOT 6
- Download the binary directly from GitHub
- Update from v2.3.0 to v2.4.0 on original HomeButtons does not work using Online Flasher HOT 1
- Feat. request : export/import settings
- Update failed HOT 9
- Update case files HOT 1
- Icons not displaying HOT 2
- special chars limitations? HOT 2
- Show value from HA on Label6 HOT 1
- [Bug] Using '{% ... %}' syntax in label bricks device HOT 2
- Need support for recovering my bricked Home Buttons after update HOT 1
- Automatic WiFi reconnection HOT 2
- After Update v2.4.1: single button pressed automatisation are not executed anymore / reliably transmitted (?) HOT 5
- Feature request: display a custom message with an optional timeout
- home button controls do not show up in home assistant HOT 3
- Single press does not work anymore with Home Assistant HOT 3
- Please reset IP-Configuration after WiFi-Setup ? HOT 2
- Icons not downloading HOT 2
- Flickering while updating HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from homebuttons.