Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- alias: 🌅🌡️🪼Weather Jelly
- description: >-
- Turn on Abbott the jellyfish lamp at 6am to a color related to the forecasted
- high temp. >80=red, >70=orange, >60=yellow, >50=green, >30=blue, >0=icy blue,
- <1=purple
- trigger:
- - platform: time
- at: "06:00:00"
- condition: []
- action:
- - choose:
- - conditions:
- - condition: numeric_state
- entity_id: sensor.openweathermap_forecast_temperature
- above: 80
- sequence:
- - service: light.turn_on
- data:
- hs_color:
- - 0
- - 100
- brightness_pct: 10
- target:
- entity_id: light.abbott
- - conditions:
- - condition: numeric_state
- entity_id: sensor.openweathermap_forecast_temperature
- above: 70
- sequence:
- - service: light.turn_on
- data:
- brightness_pct: 10
- hs_color:
- - 47
- - 100
- target:
- entity_id: light.abbott
- - conditions:
- - condition: numeric_state
- entity_id: sensor.openweathermap_forecast_temperature
- above: 60
- sequence:
- - service: light.turn_on
- data:
- brightness_pct: 10
- hs_color:
- - 60
- - 100
- target:
- entity_id: light.abbott
- - conditions:
- - condition: numeric_state
- entity_id: sensor.openweathermap_forecast_temperature
- above: 50
- sequence:
- - service: light.turn_on
- data:
- brightness_pct: 10
- hs_color:
- - 120
- - 100
- target:
- entity_id: light.abbott
- - conditions:
- - condition: numeric_state
- entity_id: sensor.openweathermap_forecast_temperature
- above: 30
- sequence:
- - service: light.turn_on
- data:
- brightness_pct: 10
- hs_color:
- - 240
- - 100
- target:
- entity_id: light.abbott
- - conditions:
- - condition: numeric_state
- entity_id: sensor.openweathermap_forecast_temperature
- above: 0
- sequence:
- - service: light.turn_on
- data:
- brightness_pct: 10
- hs_color:
- - 200
- - 100
- target:
- entity_id: light.abbott
- - conditions:
- - condition: numeric_state
- entity_id: sensor.openweathermap_forecast_temperature
- below: 1
- sequence:
- - service: light.turn_on
- data:
- brightness_pct: 10
- hs_color:
- - 270
- - 100
- target:
- entity_id: light.abbott
- - delay:
- hours: 0
- minutes: 30
- seconds: 0
- milliseconds: 0
- - service: light.turn_off
- data: {}
- target:
- entity_id: light.abbott
- mode: single
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement