NorthernMan54 / node-red-contrib-homebridge-automation

Homebridge and Node-RED Integration
Apache License 2.0
106 stars 18 forks source link

Can't access remote control options in node red #98

Open Jacksonbm1 opened 2 years ago

Jacksonbm1 commented 2 years ago

I'm trying to turn a tablet into a universal remote for our tv. Unfortunately, I'm hitting a wall. I've exposed my tv to homebridge using adb. I can then use homebridge to see the remote in my iphone (swipe down and select from the list of remotes like you would do for apple tv). However, I can't see those controls in the node red add on. Is there a way for me to access those?

NorthernMan54 commented 2 years ago

Personally I have never looked into using this with TV Accessories. Theoretically it should work. What plugin are you using on homebridge ?

Jacksonbm1 commented 2 years ago

Hmmm... using homebridge adb. I can debug and see outputs for buttons pressed in homekit, but not the tv remote itself

NorthernMan54 commented 2 years ago

Here is a quick sample from the Homebridge-cmd-television plugin controlling my TV

[{"id":"e237f91f.3d585","type":"hb-event","z":"7d82c91f.659d58","name":"Main Room TV","Homebridge":"homebridge","Manufacturer":"NorthernMan54","Service":"Television","device":"homebridgeBC:22:3D:E3:CF:45NorthernMan54Main Room TV000000D8","conf":"ff6bc54.c869738","sendInitialState":true,"x":140,"y":180,"wires":[["13e8e70a.daf729"]]},{"id":"740bfff.f81c48","type":"hb-control","z":"7d82c91f.659d58","name":"Main Room TV","Homebridge":"homebridge","Manufacturer":"NorthernMan54","Service":"Television","device":"homebridgeBC:22:3D:E3:CF:45NorthernMan54Main Room TV000000D8","conf":"ff6bc54.c869738","outputs":0,"x":420,"y":320,"wires":[]},{"id":"13e8e70a.daf729","type":"debug","z":"7d82c91f.659d58","name":"","active":true,"tosidebar":true,"console":true,"tostatus":true,"complete":"payload","targetType":"msg","statusVal":"payload","statusType":"auto","x":420,"y":180,"wires":[]},{"id":"ef9bb8a5.0ee8b","type":"inject","z":"7d82c91f.659d58","name":"Turn Off","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"{\"Active\":0}","payloadType":"json","x":170,"y":400,"wires":[["740bfff.f81c48","96fc7597.2d0f1"]]},{"id":"86595f5.7ee782","type":"inject","z":"7d82c91f.659d58","name":"Turn On","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"{\"Active\":1}","payloadType":"json","x":170,"y":440,"wires":[["740bfff.f81c48","96fc7597.2d0f1"]]},{"id":"d227266a.5164f8","type":"inject","z":"7d82c91f.659d58","name":"Pause","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"{\"RemoteKey\":11}","payloadType":"json","x":170,"y":300,"wires":[["740bfff.f81c48","96fc7597.2d0f1"]]},{"id":"c07a4f00.39e44","type":"inject","z":"7d82c91f.659d58","name":"Play","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"{\"RemoteKey\":8}","payloadType":"json","x":170,"y":340,"wires":[["740bfff.f81c48","96fc7597.2d0f1"]]},{"id":"96fc7597.2d0f1","type":"debug","z":"7d82c91f.659d58","name":"","active":true,"tosidebar":true,"console":false,"tostatus":true,"complete":"payload","targetType":"msg","statusVal":"payload","statusType":"auto","x":410,"y":420,"wires":[]},{"id":"f249181d.3f948","type":"inject","z":"7d82c91f.659d58","name":"options","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"options","payloadType":"str","x":170,"y":260,"wires":[["740bfff.f81c48"]]},{"id":"ff6bc54.c869738","type":"hb-conf","username":"031-45-154","macAddress":""}]