#Thank you so much, can you just tell me

1 messages ยท Page 1 of 1 (latest)

unborn pike
vital trench
#

Ok, it asks me for entities

#

Enitiy

unborn pike
#

Pick the sensor you want to use

#

Search for the name

vital trench
#

I have 9 of them. Do I need to do that 9x?

unborn pike
#

If you want any of them to start the automation then yes

vital trench
#

Ah, I see. I just need to ad entities

#

Thx

unborn pike
#

Ah, cool, they've improved that UI recently, you used to have to do 9 different triggers

vital trench
#

Ok, seems to work. It says it is triggered. Not sure where the notificcation should appear

#

Ah, I think I got it

unborn pike
#

Where the notification goes depends on the notifier you set up

vital trench
#

Yep, I see plenty of them. Just trying to figure out the onet hat is the easiest to setup and something i can send to many different devices

vital trench
#

Damn, I am working on this for days, hours today and the rabbit hole gets keeping deeper and deeper..Havent touched YAML yet

unborn pike
#

YAML is the beating heart of HA ๐Ÿ˜‰

vital trench
#

Yeah, I just tought that you can setup things easy with the UI

unborn pike
#

You can do a lot in the UI, a lot more than you used to be able to do

#

There's however an awful lot more that's YAML only, and that's likely to remain the case forever

#

The good news is that it's just structured text

jolly geodeBOT
#

YAML is the mark up language used by Home Assistant, consistent indenting (two spaces per level) is key. Here is a primer, and this explains multi-line templates. For validating YAML see YAML Lint.

vital trench
#

Yeah, I think I will go the File explorer route and then edit my config file from there

unborn pike
#

You'll want the SSH add-on, either of them

jolly geodeBOT
unborn pike
#

That command is far more capable than the button in the UI, which misses some stuff

vital trench
#

I already have the terminal installed. Is that it?

#

I needed it for HACS

unborn pike
#

Yeah, that's one of them

vital trench
#

ok, i have successfully triggered all my sensors. but they are always in an on state now. i tought i had a trigger (virtual button) that turns them all on and off but i dont have it, i did something wrong

unborn pike
#

You can't turn sensors on or off, they report their state

#

What sensors (make, model) and how are they integrated?

vital trench
#

I have 9 Aqara motion sensors and 1 Aqara smart button. I would need a toggle that sends notifications and when I turn it off, it needs to stop sending notifications. I tried to play with helpers and automations, I have tried to put a toggle but it doesn't work...Sorry, it is still all so confusing to me...

unborn pike
#

Again, you can't turn sensors off

#

You can use a boolean for that

jolly geodeBOT
unborn pike
#

And that'll work if you add the logic to your automation

#
condition:
  - condition: state
    entity_id: input_boolean.petunia
    state: 'off'
#

That'll require input_boolean.petunia to be off for the automation to run

jolly geodeBOT
#

There are three sections to an automation:

  • trigger: When any one of these becomes true the automation starts processing. Only one trigger is ever responsible for starting an automation, if you make a condition that checks for more than one having started the automation then the condition can never be true.
  • condition: These are checked after a trigger starts the processing, and must be true for the automation to continue.
  • action: This is the part that does something, and can also include further conditions.
vital trench
#

Will look into that, thank you

vital trench
#

I am so lost

#

And I feel dumb๐Ÿ˜•

#

I am cofused with all these automations, booleans, triggers, states etc. I cant seem to manage to make a toggle that turns of notifications

#

I have the toggle, I tried to follow youutbe videos and this documentations but it is just too much information, tabs, states, conditions etc

unborn pike
#

You can't rush learning how HA works

#
trigger:
  - platform: state
    entity_id: binary_sensor.front_door_contact
    to: 'on'
condition:
  - condition: state
    entity_id: input_boolean.petunia
    state: 'off'
action:
  - service: notify.whale
    data:
      message: "The front door just opened"
#

That's the guts of an automation that will only notify if the boolean is off

vital trench
#

I add this in the config yaml under the existing yaml?

unborn pike
#

Well, no

#

Use the automation editor

#

State trigger

#

State condition

#

Service call action

#

Do create the boolean helper first ๐Ÿ˜‰

vital trench
#

dont know wehre to put "off" and how to incorporate the boolean helper

unborn pike
vital trench
#

i dont see state*...

#

I know I am dumb, sorry

unborn pike
#

Please ... actually look at the images there

#

condition

#

Not trigger

#

for the trigger to show states in the dropdown though HA needs to have seen the entity change state ... you can just type on or off

vital trench
#

Omg, I am so dumb

#

OK, under entities, should i put the boolean or all devices (motion sensors)?

#

I guess the boolean

#

Hm, based on your YAML example, maybe all the entities?

jolly geodeBOT
#

There are three sections to an automation:

  • trigger: When any one of these becomes true the automation starts processing. Only one trigger is ever responsible for starting an automation, if you make a condition that checks for more than one having started the automation then the condition can never be true.
  • condition: These are checked after a trigger starts the processing, and must be true for the automation to continue.
  • action: This is the part that does something, and can also include further conditions.
unborn pike
#

Once more โ˜๏ธ

#

Your boolean is a condition, based of of what you said

#

The motion sensors are all triggers, based off of what you said

#

You need to read that and understand the difference

#

Hell, you also need to read the automation docs to understand what you're working with

#

That's not easier, just different

vital trench
#

I am sorry if I am comming of as an ignorant. I do read and watch but the logic behind many things is hard to understand for me...

#

I appreciate your time

unborn pike
#

As I said before, you can't rush this, you need to take the time to learn and understand HA. Rushing just causes frustration and confusion.

#

Start with a simple when motion, notify

#

Get that working