How can i add tiggle to on/off all my pushbullet?

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.

Yup add them to a group.

1 Like

i donā€™t know how to do it :frowning: 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?

  • service: input_boolean.turn_on
    data:
    entity_id: input_boolean.notify_home

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 :frowning:

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 :frowning:
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!

Did you follow the example in the post here? How can i add tiggle to on/off all my pushbullet?

Yes, i just get a new view for all my Notifications ā€¦