mirror of
https://github.com/home-assistant/home-assistant.io.git
synced 2025-07-19 15:26:59 +00:00
Update time_pattern docs (#8263)
* Cleanup time_pattern * Update sensor.tibber.markdown
This commit is contained in:
parent
2a88f9c778
commit
b0ca7bcd09
@ -180,7 +180,7 @@ calendar:
|
||||
alias: worktime wakeup
|
||||
trigger:
|
||||
platform: time
|
||||
at: 06:40:00
|
||||
at: '06:40:00'
|
||||
action:
|
||||
- service: media_player.media_play
|
||||
entity_id: media_player.bedroom
|
||||
|
@ -104,7 +104,7 @@ automation:
|
||||
initial_state: true
|
||||
trigger:
|
||||
- platform: time
|
||||
at: '21:00'
|
||||
at: '21:00:00'
|
||||
action:
|
||||
- service: frontend.set_theme
|
||||
data:
|
||||
|
@ -98,7 +98,7 @@ light:
|
||||
automation:
|
||||
alias: random_flux_living_room_lamp
|
||||
trigger:
|
||||
platform: time
|
||||
platform: time_pattern
|
||||
seconds: '/45'
|
||||
action:
|
||||
service: light.turn_on
|
||||
|
@ -142,8 +142,7 @@ automation:
|
||||
- alias: Update OpenUV every 30 minutes during the daytime
|
||||
trigger:
|
||||
platform: time_pattern
|
||||
minutes: "/30"
|
||||
seconds: 00
|
||||
minutes: '/30'
|
||||
condition:
|
||||
condition: and
|
||||
conditions:
|
||||
@ -164,8 +163,7 @@ automation:
|
||||
- alias: Update OpenUV every hour (24 of 50 calls per day)
|
||||
trigger:
|
||||
platform: time_pattern
|
||||
minutes: "/60"
|
||||
seconds: 00
|
||||
minutes: '/60'
|
||||
action:
|
||||
service: openuv.update_data
|
||||
```
|
||||
|
@ -146,9 +146,8 @@ You can also use the `sensor.google_travel_sensor_update` service to update the
|
||||
alias: "Commute - Update morning commute sensor"
|
||||
initial_state: 'on'
|
||||
trigger:
|
||||
- platform: time
|
||||
- platform: time_pattern
|
||||
minutes: '/2'
|
||||
seconds: 00
|
||||
condition:
|
||||
- condition: time
|
||||
after: '08:00:00'
|
||||
|
@ -286,9 +286,8 @@ sensor:
|
||||
automation:
|
||||
- alias: 'nonsmoker_update'
|
||||
trigger:
|
||||
- platform: time
|
||||
- platform: time_pattern
|
||||
minutes: '/5'
|
||||
seconds: 0
|
||||
action:
|
||||
- service: homeassistant.update_entity
|
||||
entity_id: sensor.nonsmoker
|
||||
|
@ -31,10 +31,9 @@ The electricity price can be used to make automations. The sensor has a `max_pri
|
||||
```yaml
|
||||
- alias: "Electricity price"
|
||||
trigger:
|
||||
platform: time
|
||||
platform: time_pattern
|
||||
# Matches every hour at 1 minutes past whole
|
||||
minutes: 1
|
||||
seconds: 00
|
||||
condition:
|
||||
condition: template
|
||||
value_template: '{{ float(states.sensor.electricity_price_hamretunet_10.state) > 0.9 * float(states.sensor.electricity_price_hamretunet_10.attributes.max_price) }}'
|
||||
|
@ -30,7 +30,7 @@ automation:
|
||||
- alias: Enable First Morning Trigger
|
||||
trigger:
|
||||
- platform: time
|
||||
at: '5:00'
|
||||
at: '05:00:00'
|
||||
action:
|
||||
service: homeassistant.turn_on
|
||||
entity_id: input_boolean.trigger_first_morning
|
||||
|
@ -25,9 +25,8 @@ automation:
|
||||
# Changes Hue light every two minutes to random color if input boolean is set to on
|
||||
- alias: 'Set LivingColors to random color'
|
||||
trigger:
|
||||
platform: time
|
||||
platform: time_pattern
|
||||
minutes: '/2'
|
||||
seconds: 0
|
||||
condition:
|
||||
condition: state
|
||||
entity_id: input_boolean.loop_livingcolors
|
||||
|
@ -36,5 +36,3 @@ automation:
|
||||
data:
|
||||
message: 'Time for lunch'
|
||||
```
|
||||
|
||||
|
||||
|
@ -54,9 +54,8 @@ rest_command:
|
||||
automation:
|
||||
alias: HTTP to MQTT keep alive
|
||||
trigger:
|
||||
platform: time
|
||||
platform: time_pattern
|
||||
minutes: '/10'
|
||||
seconds: 00
|
||||
condition:
|
||||
condition: time
|
||||
after: '7:30:00'
|
||||
|
Loading…
x
Reference in New Issue
Block a user