how can i add a button to enable all with a one button?
Thanks!~
how can i add a button to enable all with a one button?
Thanks!~
You could add an āInput Booleanā to your configuration, then add a condition to all your pushbullet automations that they only fire if the input is on.
Maybe I was not clear, i want a one button ti disable enable all button.
i dont want one of one.
try add them to a group and leave ācontrolā true.
i donāt know how to do it i just need to add the code Groups title?
if my code is what i need to do? many Thanks!
- alias: "Front door is open"
trigger:
- platform: state
entity_id: binary_sensor.door_window_sensor_158d000127ae25
state: '255'
- platform: state
entity_id: binary_sensor.door_window_sensor_158d000127ae25
state: 'on'
action:
service: notify.xiaomi
data:
message: "Back door open"
target: "device/LGE Nexus 5X"
entity_picture: /pics/note.png
Make a new input boolean, then make two automation that watches it for state changes. When it turns to āonā, you enable the three automations, when it turns āoffā, you disable them all.
chrio Thanks
but how do i add to the list?
like this?
In the GROUP code below, I have created a group that contains 4 of my automations.
This group, is then included in another group that have view set to true.
The result is a new tab on my UI that contains all of my automations. The ones in the group myAutoGroup have a switch that turns them all on or off.
group: automation: name : automation view : yes icon : mdi:settings entities : - group.myAutoGroup - automation.night_mode - automation.test - automation.turn_off_office_lights - automation.turn_off_outside_lights - automation.turn_on_a_light_when_i_arrive_home MyAutoGroup: name : myAutoGroup view : no entities: - automation.approaching_lake_house - automation.approaching_ls_home - automation.garagemotiondetected
did not working for meā¦ i dont know why this so complicate
Post your code and we can see?
Here my code, just did not understand how ti make one button for on \ off, every time to make one on one on\ off that to much workā¦ Thanks you!
- alias: "Front door is open"
trigger:
- platform: state
entity_id: binary_sensor.door_window_sensor_158d0007ae25
state: '255'
- platform: state
entity_id: binary_sensor.door_window_sensor_158d0027ae25
state: 'on'
action:
service: notify.xiaomi
data:
message: "Front door open"
target: "device/LGE Nexus 5X"
- alias: "Back door is open"
trigger:
- platform: state
entity_id: binary_sensor.door_window_sensor_158d000f9c1b
state: '255'
- platform: state
entity_id: binary_sensor.door_window_sensor_158d000f9c1b
state: 'on'
action:
service: notify.xiaomi
data:
message: "Back door open"
target: "device/LGE Nexus 5X"
I think the reason youāre finding this complicated is because you havenāt followed the advice in this thread about groups.
Above is a link to the documentation for groups (posted by @BendedArrow and @Sthope ) and a working example (posted by @treno ) . Please follow these and if it doesnāt work for you post the code you tried and we can see what is wrong with it.
Hello mf_social.
i use a groups, i have xiome with groups, but with this - alias: command i donāt know what i need to put in groups.
iāM new with HA, so ā¦
OK, you need to look in your device list for the names of the 3 automations. They will be something like
automation.back_door_is_open
Once you have these, create the group:
pushbullet_notification:
name: Pushbullet Notifications
entities:
- automation.back_door_is_open
- automation.front_door_is_open
- automation.salon_movement
This will create a card called Pushbullet Notifications with the three automations listed, plus a toggle switch in the top right that switches all three.
Hope this helps.
You can use the services homeassistant.turn_on / homeassistant.turn_off to toggle groups.
- service: homeassistant.turn_on
data:
entity_id: group.mygroup
You can use the developer tool services to try things out before using them in your config (looks like a remote, down to the left in the sidebar). The Service Data field for the above example would be {"entity_id":"group.mygroup"}
Itās probably the best place to see all options different services have.
Also, check out the states with the < > icon, to get the currect group names etc.
Did not working for me
any more idea how to make it?
as for now i need to make it one by oneā¦
all list on automation.yaml
and it like this, for every sensor
- alias: "Back door is open"
trigger:
- platform: state
entity_id: binary_sensor.door_window_sensor_158d00010f9c1b
state: '255'
- platform: state
entity_id: binary_sensor.door_window_sensor_158d00010f9c1b
state: 'on'
action:
service: notify.xiaomi
data:
message: "Back door open"
target: "device/LGE Nexus 5X"
i be happy to get any help.
Thanks!
Yes, i just get a new view for all my Notifications ā¦