AntonioMeireles / homebridge-vieramatic

Homebridge plugin for Panasonic™ Viera™ TVs (includes support for 2018 and later models)
Apache License 2.0
43 stars 9 forks source link

Multiple TV's #11

Closed peezy45 closed 4 years ago

peezy45 commented 4 years ago

Hi together,

I'm currently facing the issue that if I add a second TV to the home app both of them appear as turned on if only one is turned on.. sometimes the icon just bounces back and forth between on and off for both tv's

Kind regards

AntonioMeireles commented 4 years ago

Hi @peezy45

(and welcome to GitHub - as this seems your first issue ever! 😄)

regarding your issue, this is going to be hard to reproduce on my side as i only have one Panasonic TV so, lets try to gather as much data as possible in order to try to get around this... so,

Thanks for your patience!

peezy45 commented 4 years ago

HI, first off thanks for your quick answer (didn't expect that 😅)

So regarding the versions The plugin version is the latest, NodeJS is v12.16.0, npm v6.13.7, Homebridge 0.45.0.

I'm running all of this on a Raspberry Pi 3b+.

You're right, if it's only one TV everything works like a charm but as soon as the second is being added it's jumping around.

vieramatic.txt config.txt

AntonioMeireles commented 4 years ago

oh, well ...

i'm not sure how things worked that far ... you were invoking the plugin twice, one for each TV . (need to make things a bit more obvious in the docs) can you try please with the config.json along ...

     "platform": "PanasonicVieraTV",
            "tvs": [
            {
                    "ipAddress": "10.0.1.150",
                    "appId": "Aaw1QrgnXXXXg==",
                    "encKey": "XXXXXXPARb1HCbxDn0oQFg==",
                    "hdmiInputs": []
                },
                {
                    "ipAddress": "10.0.1.151",
                    "appId": "AScri7gn6XXXXg==",
                    "encKey": "XXXXXX9/N1tryuKBaGdDEQ==",
                    "hdmiInputs": []
                }
             ]

All the best,

António

peezy45 commented 4 years ago

I already tried it your way as well. But had the same issue

Sent with GitHawk

AntonioMeireles commented 4 years ago

humm... puzzled. contents of accessories/vieramatic.json similar both ways, btw ?

need to think a bit about this... will get back to you later tomorrow.

thanks again for your patience!

peezy45 commented 4 years ago

I've tested a little more and just figured out that the first TV (IP : 10.0.1.150) isn't responding anymore so even when I toggle that one on or off it controls the second one (IP: 10.0.1.151).

AntonioMeireles commented 4 years ago

@peezy45

Hi again! (i think i'm making progress, fwiw)

could you please email me directly (address is in git commit logs) to find a way to solve/test fix this soonish (afaict we're in close timezones :-) )

AntonioMeireles commented 4 years ago

closing, as this is, afaict, working in the last few versions, per @peezy45 feedback.