Quantcast
Channel: Configuration - Home Assistant Community
Viewing all articles
Browse latest Browse all 95468

Help with lux automation

$
0
0

@mwc wrote:

Hi

I’m trying to make a simple automation to turn on a couple of lights based on lux. However, sometimes it triggers but nothing happens and sometime it doesn’t even trigger. I have similar automations with three different brightness settings and time conditions, lower brightness towards the evening.
I’ve used the webgui to configure it.
I got other lightbased automation that works just fine. For exemple “Turn off light when alarm is armed”.

Here’s my code from automation.yaml:

- id: '1574243431814'
  alias: 'Belysning: förmiddag'
  description: Full belysning övervåningen dagtid
  trigger:
  - below: '500'
    entity_id: sensor.aeon_labs_zw100_multisensor_6_luminance
    platform: numeric_state
  condition:
  - after: '12:00'
    before: '15:59'
    condition: time
  - condition: state
    entity_id: alarm_control_panel.skonertgrand_alarm
    state: disarmed
  action:
  - data:
      brightness_pct: 85
      entity_id: light.hallen
    service: light.turn_on
  - data:
      brightness_pct: 85
      entity_id: light.koket
    service: light.turn_on
  - data:
      brightness_pct: 95
      entity_id: light.vardagsrummet
    service: light.turn_on

The other two looks just the same apart from other brightness_pct, time condition and lux value.
Thanks for any help.

Posts: 10

Participants: 3

Read full topic


Viewing all articles
Browse latest Browse all 95468

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>