I’ve been struggling with this for a while and finally decided to reach out for help. I have an older Sony TV that has to be controlled via IR. This TV has discrete Power On and Off commands, which work correctly with iRule.
What I know:
My particular Sony TV requires a repeat of 3 to work as per FAQ: Why Don’t My IR Codes For My Sony Devices Work?
Based on the article above, I did more digging and was able to use iLearn to modify the Global Cache commands to work for Powering On and Off. I used those working commands with iConvert to convert them into Hex Codes; which I refer to below as my modified commands.
What I’ve tried via the services section of HA:
I’ve tried sending both the On and Off commands. The emitter lights up but doesn’t actually cause to TV to come on or go off.
Using the defauly Sony IR codes:
{
"entity_id": "remote.living_room_tv",
"command": "ON",
"num_repeats": "3"
}
Using my modified commands:
{
"entity_id": "remote.living_room_tv",
"command": "ON"
}
Additionally I also tried the remote.turn_off and remote.turn_on commands with no success.
Remote Section of Config.yaml:
#remotes
remote:
- platform: itach
host: 192.168.1.41
devices:
- name: "Living Room TV"
modaddr: 1
connaddr: 2
commands:
- name: "ON"
#gc_commands data: "0000 0068 0000 000d 0060 0018 0018 0018 0030 0018 0030 0018 0030 0018 0018 0018 0030 0018 0018 0018 0030 0018 0018 0018 0018 0018 0018 0018 0018 03f5"
data: "0000 0067 0000 000D 0060 0018 0018 0018 0030 0018 0030 0018 0030 0018 0018 0018 0030 0018 0018 0018 0030 0018 0018 0018 0018 0018 0018 0018 0018 03F5"
- name: "OFF"
#GC_commands data: "0000 0068 0000 000d 0060 0018 0030 0018 0030 0018 0030 0018 0030 0018 0018 0018 0030 0018 0018 0018 0030 0018 0018 0018 0018 0018 0018 0018 0018 03de"
data: "0000 0067 0000 000D 0060 0018 0030 0018 0030 0018 0030 0018 0030 0018 0018 0018 0030 0018 0018 0018 0030 0018 0018 0018 0018 0018 0018 0018 0018 03DE"
I’ve also tried using the node-red-contrib-globalcache node via NodeRed per this thread Problem with itach component and Sony TV with no success. I immediately get an API error in NodeRed.
Any other things I can try to get this working?