So I’ve got the harmony hub successfully sending commands and running activities. Where I’m running into an issue with with a script that involves multiple harmony hubs commands being send a couple of seconds apart.
The following commands in the sequence work (although with really big delays between the different commands):
Menu, DirectionDown, DirectionDown, DirectionDown
Then it fails at the next one: Select
I’m positive I’m using the correct device ID and command, see from my harmony hub conf file:
Device Commands
39925136 - Panasonic TV
PowerOff
PowerOn
PowerToggle
Hyphen
Number0
Number1
Number2
Number3
Number4
Number5
Number6
Number7
Number8
Number9
Mute
VolumeDown
VolumeUp
PrevChannel
ChannelDown
ChannelUp
DirectionDown
DirectionLeft
DirectionRight
DirectionUp
Select
Stop
Play
Rewind
Pause
FastForward
SkipBackward
SkipForward
Return
Menu
Favorite
Green
Red
Blue
Yellow
Info
Exit
Aspect
CC
Input
InputComponent1
InputComponent2
InputHdmi1
InputHdmi2
InputHDMI3
InputPc
InputTuner
InputVideo1
InputVideo2
InputVideo3
InputVideo4
SAP
SdCard
SubMenu
VieraLink
VieraTools
here is the script:
bedtime:
alias: 'Initiate bedtime mode'
sequence:
- service: scene.turn_on
entity_id: scene.all_lights_off
- service: tts.google_say
entity_id: media_player.all_devices_group
data:
message: "Shutting everything down and turning the TV on. Good night"
- service: remote.send_command
data_template:
entity_id: remote.harmony_hub
command: PowerOn
device: >
39925136
- service: media_player.media_stop
entity_id: media_player.all_devices_group
- delay: 00:00:15
- service: remote.send_command
data_template:
entity_id: remote.harmony_hub
command: Menu
device: 39925136
- service: remote.send_command
data_template:
entity_id: remote.harmony_hub
command: DirectionDown
device: 39925136
- service: remote.send_command
data_template:
entity_id: remote.harmony_hub
command: DirectionDown
device: 39925136
- service: remote.send_command
data_template:
entity_id: remote.harmony_hub
command: DirectionDown
device: 39925136
- service: remote.send_command
data_template:
entity_id: remote.harmony_hub
command: Select
device: 39925136
- service: remote.send_command
data_template:
entity_id: remote.harmony_hub
command: Select
device: 39925136
- service: remote.send_command
data_template:
entity_id: remote.harmony_hub
command: DirectionLeft
device: 39925136
- service: remote.send_command
data_template:
entity_id: remote.harmony_hub
command: Exit
device: 39925136
The point of this is to have my sleep timer set on my TV automatically. It should go Menu, Down, Down, Down, Select, Select, Left, Exit but it getting suck at the SELECT command. Is that particular command just bugged for my Panasonic TV? If it isn’t fixable does anyone know of an alternate way for me to accomplish this with HA?