weather station esphome and others

This commit is contained in:
root
2024-05-27 22:20:04 +12:00
parent 945177d535
commit 155725ba3a
32 changed files with 4341 additions and 182 deletions

View File

@@ -7,32 +7,61 @@
# value_template: "{{ value_json.ZbReceived.Office_Media_Button.Power }}"
automation:
- id: "1629271273952"
- id: pause_office_tv_on_media_button
alias: Pause Office TV on Media Button
description: ""
trigger:
- platform: state
entity_id: sensor.media_button_office_zbt04_action
to: "single"
- platform: event
event_type: zha_event
event_data:
device_ieee: 00:15:8d:00:06:79:46:c8
command: click
args:
click_type: single
condition: []
action:
- service: media_player.media_pause
target:
device_id: abb6b5a6b4e4925dcb3a77ea2c293eaa
mode: single
- id: "1629271457675"
- id: play_office_tv_on_media_button
alias: Play Office TV on Media Button
description: ""
trigger:
- platform: state
entity_id: sensor.media_button_office_zbt04_action
to: "double"
- platform: event
event_type: zha_event
event_data:
device_ieee: 00:15:8d:00:06:79:46:c8
command: click
args:
click_type: double
condition: []
action:
- service: media_player.media_play
target:
device_id: abb6b5a6b4e4925dcb3a77ea2c293eaa
mode: single
- id: seek_office_tv_on_media_button
alias: Seek Office TV on Media Button
description: ""
trigger:
- platform: event
event_type: zha_event
event_data:
device_ieee: 00:15:8d:00:06:79:46:c8
command: click
args:
click_type: triple
condition: []
action:
- service: media_player.media_seek
data:
seek_position: >-
{{ state_attr("media_player.office_tv",
"media_position")|int + (seek_amount|default(-30)|int(-30)) }}
target:
device_id: abb6b5a6b4e4925dcb3a77ea2c293eaa
mode: single
# - id: "1629271273958"
# alias: Pause office TV on MQTT
# description: ""
@@ -60,3 +89,32 @@ automation:
# data:
# seek_position: 30
# mode: single
#automation:
# - id: "1629271273952"
# unique_id: pause_office_tv_on_media_button
# alias: Pause Office TV on Media Button
# description: ""
# trigger:
# - platform: state
# entity_id: sensor.media_button_office_zbt04_action
# to: "single"
# condition: []
# action:
# - service: media_player.media_pause
# target:
# device_id: abb6b5a6b4e4925dcb3a77ea2c293eaa
# mode: single
# - id: "1629271457675"
# alias: Play Office TV on Media Button
# description: ""
# trigger:
# - platform: state
# entity_id: sensor.media_button_office_zbt04_action
# to: "double"
# condition: []
# action:
# - service: media_player.media_play
# target:
# device_id: abb6b5a6b4e4925dcb3a77ea2c293eaa
# mode: single