Sony TV replaces Viera, Veon Media Button Updates
This commit is contained in:
@@ -1,10 +1,10 @@
|
||||
mqtt:
|
||||
sensor:
|
||||
- unique_id: office_media_button_1
|
||||
name: "Office Media Button"
|
||||
state_topic: "tele/tasmo-zigb-6440-1/9CB5/SENSOR"
|
||||
unit_of_measurement: "Press"
|
||||
value_template: "{{ value_json.ZbReceived.Office_Media_Button.Power }}"
|
||||
#mqtt:
|
||||
# sensor:
|
||||
# - unique_id: office_media_button_1
|
||||
# name: "Office Media Button"
|
||||
# state_topic: "tele/tasmo-zigb-6440-1/9CB5/SENSOR"
|
||||
# unit_of_measurement: "Press"
|
||||
# value_template: "{{ value_json.ZbReceived.Office_Media_Button.Power }}"
|
||||
|
||||
automation:
|
||||
- id: "1629271273952"
|
||||
@@ -12,8 +12,8 @@ automation:
|
||||
description: ""
|
||||
trigger:
|
||||
- platform: state
|
||||
entity_id: sensor.office_media_button
|
||||
to: "1"
|
||||
entity_id: sensor.media_button_office_zbt04_action
|
||||
to: "single"
|
||||
condition: []
|
||||
action:
|
||||
- service: media_player.media_pause
|
||||
@@ -25,38 +25,38 @@ automation:
|
||||
description: ""
|
||||
trigger:
|
||||
- platform: state
|
||||
entity_id: sensor.office_media_button
|
||||
to: "2"
|
||||
entity_id: sensor.media_button_office_zbt04_action
|
||||
to: "double"
|
||||
condition: []
|
||||
action:
|
||||
- service: media_player.media_play
|
||||
target:
|
||||
device_id: abb6b5a6b4e4925dcb3a77ea2c293eaa
|
||||
mode: single
|
||||
- id: "1629271273958"
|
||||
alias: Pause office TV on MQTT
|
||||
description: ""
|
||||
trigger:
|
||||
- platform: mqtt
|
||||
topic: viewroad-commands/officetv/action
|
||||
payload: pause
|
||||
encoding: utf-8
|
||||
condition: []
|
||||
action:
|
||||
- service: media_player.media_pause
|
||||
target:
|
||||
device_id: abb6b5a6b4e4925dcb3a77ea2c293eaa
|
||||
mode: single
|
||||
- id: "1630969028384"
|
||||
alias: Skip Forward 30 Seconds on Media Button
|
||||
description: ""
|
||||
trigger:
|
||||
- platform: state
|
||||
entity_id: sensor.office_media_button
|
||||
to: "3"
|
||||
condition: []
|
||||
action:
|
||||
- service: media_player.media_seek
|
||||
data:
|
||||
seek_position: 30
|
||||
mode: single
|
||||
# - id: "1629271273958"
|
||||
# alias: Pause office TV on MQTT
|
||||
# description: ""
|
||||
# trigger:
|
||||
# - platform: mqtt
|
||||
# topic: viewroad-commands/officetv/action
|
||||
# payload: pause
|
||||
# encoding: utf-8
|
||||
# condition: []
|
||||
# action:
|
||||
# - service: media_player.media_pause
|
||||
# target:
|
||||
# device_id: abb6b5a6b4e4925dcb3a77ea2c293eaa
|
||||
# mode: single
|
||||
# - id: "1630969028384"
|
||||
# alias: Skip Forward 30 Seconds on Media Button
|
||||
# description: ""
|
||||
# trigger:
|
||||
# - platform: state
|
||||
# entity_id: sensor.media_button_office_zbt04_action
|
||||
# to: "triple"
|
||||
# condition: []
|
||||
# action:
|
||||
# - service: media_player.media_seek
|
||||
# data:
|
||||
# seek_position: 30
|
||||
# mode: single
|
||||
|
Reference in New Issue
Block a user