#Hi guys iam new at hass and atm a little

1 messages Β· Page 1 of 1 (latest)

buoyant fossil
#

You'll want to share the automation - which you can find in automations.yaml - if you want us to have any chance of helping πŸ˜‰

prime cragBOT
#

Please use a code share site to share code or logs, for example:

Please don't use Pastebin, since it can randomly add spaces to the main view. Please also don't share text as images since it makes it harder for people to help you. Remember that others may have colour blindness, impaired vision, etc.

tulip igloo
#

thats the right way to share right? πŸ˜„

prime cragBOT
#

Why use the sun elevation trigger or condition rather than a time offset from sunset or sunrise? Because the elevation more consistently relates to the light level than a fixed time offset. An hour before sunset is very different light levels on the longest day than the shortest day, for example.

buoyant fossil
#

Change

mode: single
``` to 
```yaml
mode: restart
tulip igloo
#

thats all? πŸ˜„

buoyant fossil
#

Yes

tulip igloo
#

okay fine, i will test it. πŸ™‚ How can i add a condition, that check if the light is on? When my wife turn on the light manually, the automation should check that.

buoyant fossil
#

Well, the state condition would be that the light is off

#

Just add it to your condition block

#
  - condition: state
    entity_id: switch.shelly_1_spots_haustur
    state: 'off'

Of course, that'll then break the turning off ablobthinking

#

You'll need a second automation, and an input_boolean

tulip igloo
#

dont forget, iam new at this πŸ˜„

buoyant fossil
tulip igloo
#

thats the pro league πŸ˜„

buoyant fossil
#
template:
  - trigger:
      - platform: event
        event_type: doorbird_doordbird_bewegung_haustΓΌr
    binary_sensor:
      - name: "motion"
        state: 'on'
        auto_off: 10
tulip igloo
#

should i add this in my automation?

#

or should this a new one?

buoyant fossil
#

That's a template sensor - it goes in configuration.yaml

#

The first one turns the switch on when motion is detected, and turns on a boolean to show that it turned the light on

The second turns it off when motion hasn't been detected for 30 seconds and the light was turned on by the first automation

The third turns off the boolean whenever the switch turns off

tulip igloo
#

fixed it. πŸ˜„

#

okay, it didnt work

#

When i start manually the "doorbird_doordbird_bewegung_haustΓΌr" event, the lights dont switch to on.

#

ahh forget to restart...

#

Okay, the "on" automation works, but the "off" doesnt...

buoyant fossil
#

Does the binary sensor turn off?

tulip igloo
#

what you mean with binary sensor? the light (shelly) is on

buoyant fossil
#

The automations I provided use that created entity to work

#

I don't know whether you followed what I provided, or did something different, as you didn't say either way

tulip igloo
#

ah okay.. forget that - where can i see if the sensor is on?

prime cragBOT
tulip igloo
#

okay, the sensor is off

buoyant fossil
#

and it turns on? You're using the automations I wrote, or are you doing something else?

tulip igloo
#

no i use all 3 from you

buoyant fossil
#

And the boolean... you created it?

#

Or did you skip right over input_boolean.create_me

tulip igloo
#

yes i think so

#

wait i sec, dont say me the right way, i will learn it. πŸ˜„

prime cragBOT
tulip igloo
#

i have the ha site

#

πŸ˜‰

#

Wow - it works

#

πŸ₯³

tulip igloo
#

Did you know that integration?
https://www.home-assistant.io/integrations/vallox/

At the Moment, i switch the profils manually. But for the future they should switch profils when iphones are at home or away. Did i need here two automations? One for coming home and one for leaving? How can i add conditions, based on when one person (iphone) is leaving and one stays at home (profil should stay on "home")? Here is the yaml code for the testversion... https://dpaste.org/yJqXY

When i should ask this in the main channel, let me know. πŸ˜‰

buoyant fossil
#

You probably want to ask in the main automations channel so that others see the new question

tulip igloo
#

with the share of yaml?

buoyant fossil
#

Yup