New Python plugin for Logitech Harmony

Python and python framework
gorstj
Posts: 23
Joined: Tuesday 13 December 2016 19:06
Target OS: Raspberry Pi
Domoticz version:
Contact:

Re: New Python plugin for Logitech Harmony

Post by gorstj » Friday 27 April 2018 18:55

The BWS-HA-Bridge (https://github.com/bwssytems/ha-bridge) is made by the same developer as the restful-harmony daemon and includes an API for accessing/controlling the Harmony devices.

Would it not make more sense to rely on the HA-Bridge for this plugin rather than the ancient restful-harmony api?

I already run ha-bridge and don't want to run yet another daemon!

EscApe
Posts: 237
Joined: Thursday 02 April 2015 8:46
Target OS: Raspberry Pi
Domoticz version: v3+beta
Location: The Netherlands
Contact:

Re: New Python plugin for Logitech Harmony

Post by EscApe » Saturday 28 April 2018 16:14

You're absolutely right. At the time i wrote this plugin i was running ha-bridge and switched to restful-harmony (by the same author) because i red it was not possible to control the harmony through the ha bridge api. Now i see the instructions on GitHub. I don't know if i misread something last year or if this is a feature that was introduced after i wrote the plugin.

Rewriting the plugin is nog a priority for me now the domoticz harmony integration is being actively developed again (thanks to gordonb3!). For me the plugin was a work-around for the unstable (standard) integration. I'm glad gordon3b is working hard to fix that, since the python framework comes with it's own (beta) challenges.

Correction on the statement above: Thinking back it was not that ha bridge didn't offer the needed api. It was because ha bridge offered no api for individual keypresses on the harmony. Since i was using this method for the domoticz plugin AND for a home-brew webhook server (for ifttt) i did not want to run two separate but very similar services. HA bridge probably was and is a viable/better solution for the plugin. Rewriting it is still not a priority though ;-)
Gorbdonb3 seems to have fixed the 'official' integration. It's running great on my setup :D .
Last edited by EscApe on Sunday 29 April 2018 14:11, edited 1 time in total.

gordonb3
Posts: 198
Joined: Saturday 31 March 2018 22:24
Target OS: Linux
Domoticz version: Custom
Location: Delft, NL
Contact:

Re: New Python plugin for Logitech Harmony

Post by gordonb3 » Saturday 28 April 2018 21:59

May like to know that I'm currently also maintaining the originating code HarmonyHubControl that allows controlling both activities and individual devices.

mvzut
Posts: 453
Joined: Thursday 12 November 2015 11:55
Target OS: Raspberry Pi
Domoticz version: Beta
Location: The Netherlands
Contact:

Re: New Python plugin for Logitech Harmony

Post by mvzut » Tuesday 04 December 2018 16:08

EscApe wrote:
Saturday 28 April 2018 16:14
Gorbdonb3 seems to have fixed the 'official' integration. It's running great on my setup :D .
I installed your plugin today since the "official" integration of the Harmony Hub gives connection errors multiple times a day. Runs fine so far!

Nevertheless, since both the restful-harmony api and your plugin are not actively maintained anymore, I would prefer it if the built-in support worked more stable. EscApe, you mentioned you don't experience the error messages anymore since you have a new router? I have the same router, but still I have regular connection error messages.
Gordonb3, is it perhaps an option to make the integrated Harmony plugin a bit more "forgiving"? I would prefer that it simply reconnects in the background, and only gives a real error message when the connection cannot be restored after a number of tries.
Raspberry Pi 3 - RFXtrx433 - Aeon Z-Stick gen5 - Opentherm Gateway - P1 smart meter - Netatmo - Philips Hue - ELV Max! - ESP8266 DIY water meter - Xiaomi Gateway - Sonos - IP cameras - Wall mounted tablet + Imperihome - Alexa - MANY switches/sensors

EscApe
Posts: 237
Joined: Thursday 02 April 2015 8:46
Target OS: Raspberry Pi
Domoticz version: v3+beta
Location: The Netherlands
Contact:

Re: New Python plugin for Logitech Harmony

Post by EscApe » Tuesday 04 December 2018 22:49

I think the build in support is still working quite well. There is a limit to how forgiving it can be. I also have been getting more errors than usual the past week. A while back it would fail completely. In that case the Logitech servers where the problem and I suspect the Logitech servers might also be the cause this time.

mvzut
Posts: 453
Joined: Thursday 12 November 2015 11:55
Target OS: Raspberry Pi
Domoticz version: Beta
Location: The Netherlands
Contact:

Re: New Python plugin for Logitech Harmony

Post by mvzut » Tuesday 04 December 2018 23:44

EscApe wrote:I think the build in support is still working quite well. There is a limit to how forgiving it can be. I also have been getting more errors than usual the past week. A while back it would fail completely. In that case the Logitech servers where the problem and I suspect the Logitech servers might also be the cause this time.
You might be right. The restful-harmony API in combination with your plugin turned out to give approximately the same amount of messages. The remote itself is also a bit unresponsive at times since a week or so.
Raspberry Pi 3 - RFXtrx433 - Aeon Z-Stick gen5 - Opentherm Gateway - P1 smart meter - Netatmo - Philips Hue - ELV Max! - ESP8266 DIY water meter - Xiaomi Gateway - Sonos - IP cameras - Wall mounted tablet + Imperihome - Alexa - MANY switches/sensors

poudenes
Posts: 632
Joined: Wednesday 08 March 2017 10:42
Target OS: Linux
Domoticz version: 3.8993
Location: Amsterdam
Contact:

Re: New Python plugin for Logitech Harmony

Post by poudenes » Monday 17 December 2018 20:34

Hi All,

Also people here where domoticz can't connect to Logitech Hub suddenly?

Is there way to check if the port 5222 is ok to connect to logitech?
Suddenly its not reachable anymore... did full reset of router, domoticz etc
RPi3 with OSMC - RPi3 with Domoticz - Dashticz - MiLight - Nanolead Aurora - KaKu - Logitech Hamony - Nest - RFLink

EscApe
Posts: 237
Joined: Thursday 02 April 2015 8:46
Target OS: Raspberry Pi
Domoticz version: v3+beta
Location: The Netherlands
Contact:

Re: New Python plugin for Logitech Harmony

Post by EscApe » Monday 17 December 2018 21:08

I also got lots of connection errors in my logs today, but did not notice any practical failures. Might be the Logitech cloud services acting up again.
Did you reboot the harmony hub?


(Seems unrelated but mine also received a software update today. It is still working)

gordonb3
Posts: 198
Joined: Saturday 31 March 2018 22:24
Target OS: Linux
Domoticz version: Custom
Location: Delft, NL
Contact:

Re: New Python plugin for Logitech Harmony

Post by gordonb3 » Monday 17 December 2018 22:17

Still running. Had two ping errors today, but I'm kind of used to seeing those.

EscApe
Posts: 237
Joined: Thursday 02 April 2015 8:46
Target OS: Raspberry Pi
Domoticz version: v3+beta
Location: The Netherlands
Contact:

Re: New Python plugin for Logitech Harmony

Post by EscApe » Monday 17 December 2018 22:33

Correction: I thought is was still working, but that was the direct integration of my Denon receiver with ifttt.
Neither harmony-restful nor the build in Harmony support (by gordonb3) is workin for me right now. There was an update for the harmony hub today.
Looks like the update was released dec 11th. It includes ‘security related fixes’.
Harmony Hub firmware (v4.15.206)
Security related fixes
Bug fixes

EscApe
Posts: 237
Joined: Thursday 02 April 2015 8:46
Target OS: Raspberry Pi
Domoticz version: v3+beta
Location: The Netherlands
Contact:

Re: New Python plugin for Logitech Harmony

Post by EscApe » Monday 17 December 2018 22:49

It gets worse.... looks like Logitech in their infinite wisdom have removed the local api.... 'security related fixes'... right :x

https://community.logitech.com/s/questi ... api-access

poudenes
Posts: 632
Joined: Wednesday 08 March 2017 10:42
Target OS: Linux
Domoticz version: 3.8993
Location: Amsterdam
Contact:

Re: New Python plugin for Logitech Harmony

Post by poudenes » Monday 17 December 2018 23:10

EscApe wrote:It gets worse.... looks like Logitech in their infinite wisdom have removed the local api.... 'security related fixes'... right :x

https://community.logitech.com/s/questi ... api-access
Ehmmm so no support anymore for us??
Then lots of light settings will not work anymore.... Can read status etc....


Verzonden vanaf mijn iPhone met Tapatalk Pro
RPi3 with OSMC - RPi3 with Domoticz - Dashticz - MiLight - Nanolead Aurora - KaKu - Logitech Hamony - Nest - RFLink

EscApe
Posts: 237
Joined: Thursday 02 April 2015 8:46
Target OS: Raspberry Pi
Domoticz version: v3+beta
Location: The Netherlands
Contact:

Re: New Python plugin for Logitech Harmony

Post by EscApe » Monday 17 December 2018 23:14

looks like ik. Please send your complaints to Logitech. They need to know that removing the api and forcing us to the limited cloud services is not appreciated.

poudenes
Posts: 632
Joined: Wednesday 08 March 2017 10:42
Target OS: Linux
Domoticz version: 3.8993
Location: Amsterdam
Contact:

Re: New Python plugin for Logitech Harmony

Post by poudenes » Tuesday 18 December 2018 1:25

There is a way to revert back.
And someone is testing using de websocket :

https://github.com/jlynch630/Harmony.NET


Verzonden vanaf mijn iPhone met Tapatalk Pro
RPi3 with OSMC - RPi3 with Domoticz - Dashticz - MiLight - Nanolead Aurora - KaKu - Logitech Hamony - Nest - RFLink

User avatar
LouiS22
Posts: 503
Joined: Friday 27 February 2015 14:21
Target OS: Raspberry Pi
Domoticz version: beta
Location: Budapest, Hungary
Contact:

Re: New Python plugin for Logitech Harmony

Post by LouiS22 » Tuesday 18 December 2018 10:29

They're promising a fix:

Hi folks.



Will from the Harmony Team here. Just wanted to let you know we are aware of the feedback from the community. We will be providing an update shortly.



Thanks for your patience.

poudenes
Posts: 632
Joined: Wednesday 08 March 2017 10:42
Target OS: Linux
Domoticz version: 3.8993
Location: Amsterdam
Contact:

Re: New Python plugin for Logitech Harmony

Post by poudenes » Tuesday 18 December 2018 12:56

Yes let's hope they see that there is a big open source users that's need the api!

I revert back my firmware and up and running again


Verzonden vanaf mijn iPhone met Tapatalk Pro
RPi3 with OSMC - RPi3 with Domoticz - Dashticz - MiLight - Nanolead Aurora - KaKu - Logitech Hamony - Nest - RFLink

Stimpy68
Posts: 16
Joined: Wednesday 09 May 2018 16:37
Target OS: Linux
Domoticz version:
Location: The Hague, The Netherlands
Contact:

Re: New Python plugin for Logitech Harmony

Post by Stimpy68 » Tuesday 18 December 2018 17:06

More complaints here, thread started by logitech: https://community.logitech.com/s/questi ... -fw-415206

DutchHans
Posts: 360
Joined: Friday 03 April 2015 20:44
Target OS: Raspberry Pi
Domoticz version:
Location: Germany (near dutch border)
Contact:

Re: New Python plugin for Logitech Harmony

Post by DutchHans » Tuesday 18 December 2018 20:25

Hi.. updated my Harmonies and they both 'died' when accessed via API but you can rollback to 4.15.193

Just did it and it works!

Read there the solution:

https://www.reddit.com/r/homeassistant/ ... ksremoves/

Cheers, Hans

gordonb3
Posts: 198
Joined: Saturday 31 March 2018 22:24
Target OS: Linux
Domoticz version: Custom
Location: Delft, NL
Contact:

Re: New Python plugin for Logitech Harmony

Post by gordonb3 » Tuesday 18 December 2018 21:08

Thanks all for the heads-up. As I was not (yet) affected I decided to reconfigure my firewall and deny the Hub internet access. Somewhat anxious to see if that will lead to any other results.

EscApe
Posts: 237
Joined: Thursday 02 April 2015 8:46
Target OS: Raspberry Pi
Domoticz version: v3+beta
Location: The Netherlands
Contact:

Re: New Python plugin for Logitech Harmony

Post by EscApe » Tuesday 18 December 2018 21:26

Someone pointed out that there seems to be another method, but implementing this for Domoticz is way beyond my programming skills.

https://github.com/jlynch630/Harmony.NET

Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests