genielabs / HomeGenie

HomeGenie, the programmable automation intelligence
https://homegenie.it
GNU General Public License v3.0
388 stars 154 forks source link

MIG API HomeAutomation.X10 Control.AllLightsOff does not work #401

Closed snykiel closed 1 year ago

snykiel commented 4 years ago

MIG API HomeAutomation.X10 Control.AllLightsOff does not work

This works in Home Genie Version 1.1 beta r526 but does not work in Home Genie Version V1.3-stable.5 or stable.4

mralapete commented 4 years ago

What version of Mint and Mono are you using.

snykiel commented 4 years ago

Linux Mint 19.3 and Mono JIT compiler version 4.6.2 (Debian 4.6.2.7+dfsg-1ubuntu1)

On Mon, Apr 13, 2020 at 5:03 PM mralapete notifications@github.com wrote:

What version of Mint and Mono are you using.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/genielabs/HomeGenie/issues/401#issuecomment-613119731, or unsubscribe https://github.com/notifications/unsubscribe-auth/AD56QZJJHYSJE5VW7WH2M4TRMOD27ANCNFSM4MHGGYTQ .

mralapete commented 4 years ago

Could you post the full MIG API command you are using.

There was changes made to the application around 1.2 v39 stable and 1.3 beta 1 that required a complete backup and a complete reinstall and restore https://github.com/genielabs/HomeGenie/releases

I suggest doing that and at the same time taking advantage of installing the latest Mono version. Pick one that suits you best. https://www.mono-project.com/download/stable/#download-lin

snykiel commented 4 years ago

This is tthe full MIG API command I am usine:/api/HomeAutomation.X10/B/Control.AllLightsOff When I installed a new version of HomeGenie I did a complete reinstallFor an example:sudo apt-remove homegenie_1.3-s table.4_all.debThen did sudo gdebi homegenie_1.3-stable.5_all.deb I did not need to install gdebi-core because it was already installed, I believe by default with Linux Mint 19.3 or ss that where mono is installed from or is it in the sudo gdebi homegenie_1.3- stable.5_all.deb? On Tue, 2020-04-14 at 14:41 -0700, mralapete wrote:

Could you post the full MIG API command you are using.

There was changes made to the application around 1.2 v39 stable and 1.3 beta 1 that required a complete backup and a complete reinstall and recovery. https://github.com/genielabs/HomeGenie/releases

I suggest doing that and at the same time taking advantage of installing the latest Mono version. Pick one that suits you best.

https://www.mono-project.com/download/stable/#download-lin

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or unsubscribe.

[ { "@context": "http://schema.org", "@type": "EmailMessage", "potentialAction": { "@type": "ViewAction", "target": " https://github.com/genielabs/HomeGenie/issues/401#issuecomment-613695585 ", "url": " https://github.com/genielabs/HomeGenie/issues/401#issuecomment-613695585 ", "name": "View Issue" }, "description": "View this Issue on GitHub", "publisher": { "@type": "Organization", "name": "GitHub", "url": "https://github.com" } } ]

mralapete commented 4 years ago

You’re showing 4.6 version of Mono. Mono from the Mono project is up to version 6x at this stage so I’m assuming you are installing from the Linux Mint repo which is quite a bit behind at this stage. Again there’s no guarantee that this will help but as nothing has worked for you so far I really would install from the source I supplied in the link, it’s entirely up to you.

To be honest I’ve never had any luck doing a sudo remove of Mono but if you feel that’s the way to go stick with it. Make sure you get rid of everything Mono related before you attempt to install a newer version. You may have to do this manually. Not an easy task. I’m using Mono v 6.8.0 at the moment on Raspbian.

By the way the gdebi package installer appears to be broken so I’d use the manual install method.

snykiel commented 4 years ago

I will continue to use Home Genie Version 1.1 beta r526 which works fine and NOT install a newer version of Mono. I thought that maybe Home Genie Version 1.3-stable.4 and 5 got broken as far to MIG API HomeAutomation.X10 Control.AllLightsOff does not work This works fine in Home Genie Version 1.1 beta r526Does not work in Home Genie Version 1.3-stable.4 and 5

On Tue, 2020-04-14 at 19:54 -0700, mralapete wrote:

You’re showing 4.6 version of Mono. Mono from the Mono project is up to version 6x at this stage so I’m assuming you are installing from the Linux Mint repo which is quite a bit behind at this stage. Again there’s no guarantee that this will help but as nothing has worked for you so far I really would install from the source I supplied in the link, it’s entirely up to you.

To be honest I’ve never had any luck doing a sudo remove of Mono but if you feel that’s the way to go stick with it. Make sure you get rid of everything Mono related before you attempt to install a newer version. You may have to do this manually. Not an easy task. I’m using Mono v 6.8.0 at the moment on Raspbian.

By the way the gdebi package installer appears to be broken so I’d use the manual install method.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or unsubscribe.

[ { "@context": "http://schema.org", "@type": "EmailMessage", "potentialAction": { "@type": "ViewAction", "target": " https://github.com/genielabs/HomeGenie/issues/401#issuecomment-613785923 ", "url": " https://github.com/genielabs/HomeGenie/issues/401#issuecomment-613785923 ", "name": "View Issue" }, "description": "View this Issue on GitHub", "publisher": { "@type": "Organization", "name": "GitHub", "url": "https://github.com" } } ]

mralapete commented 4 years ago

That might be best. If you get a chance maybe you could install HG 1.3 on something like a Raspberry Pi with the latest version of Mono from the Mono project and test to see if that command works there. I’m not sure what processor you’re running HG on.

Jens1234 commented 4 years ago

I think it changed to

http://Your-IP-Address/api/HomeAutomation.X10/B/Control.AllUnitsOff

You can find the change commented in XTENLib, maybe it works for you exchanging the 2 XTenLib Versions.

image

mralapete commented 4 years ago

I think it changed to

http://Your-IP-Address/api/HomeAutomation.X10/B/Control.AllUnitsOff

You can find the change commented in XTENLib, maybe it works for you exchanging the 2 XTenLib Versions.

image

You’re dead right. Looks like it may have been

I think it changed to

http://Your-IP-Address/api/HomeAutomation.X10/B/Control.AllUnitsOff

You can find the change commented in XTENLib, maybe it works for you exchanging the 2 XTenLib Versions.

image

You’re dead right. The following seems to be the case now

AllLightsOn turns on all lights AllLightsOff not functioning AllUnitsOn not functioning AllUnitsOff turns off all lights and units

This appears to be an error. Could you confirm that this is the case on your system.

snykiel commented 4 years ago

AllUnitsOff works in Home Genie Version 1.3-stable.5AllUnitsOn DOES NOT work in Home Genie Version 1.3-stable.5

On Fri, 2020-04-24 at 15:24 -0700, mralapete wrote:

I think it changed to http://Your-IP-Address/api/HomeAutomation.X10/B/Control.AllUnitsOff You can find the change commented in XTENLib, maybe it works for you exchanging the 2 XTenLib Versions.

You’re dead right. Looks like it may have been

I think it changed to http://Your-IP-Address/api/HomeAutomation.X10/B/Control.AllUnitsOff You can find the change commented in XTENLib, maybe it works for you exchanging the 2 XTenLib Versions.

You’re dead right. The following seems to be the case now

AllLightsOn turns on all lights

AllLightsOff not functioning

AllUnitsOn not functioning

AllUnitsOff turns off all lights and units

This appears to be an error. Could you confirm that this is the case on your system.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or unsubscribe.

[ { "@context": "http://schema.org", "@type": "EmailMessage", "potentialAction": { "@type": "ViewAction", "target": " https://github.com/genielabs/HomeGenie/issues/401#issuecomment-619263805 ", "url": " https://github.com/genielabs/HomeGenie/issues/401#issuecomment-619263805 ", "name": "View Issue" }, "description": "View this Issue on GitHub", "publisher": { "@type": "Organization", "name": "GitHub", "url": "https://github.com" } } ]

mralapete commented 4 years ago

AllUnitsOff works in Home Genie Version 1.3-stable.5AllUnitsOn DOES NOT work in Home Genie Version 1.3-stable.5

As far as I know AllUnitsOn was never implemented for security reasons. It’s a dangerous command used unwisely. I haven’t been able to confirm if AllLightsOff worked in v525 but you obviously have.

Effectively the two working X10 commands in 1.3 v7 are:

AllLightsOn AllUnitsOff

Maybe AllLightsOff could be added at some stage but at least you have a way of turning off all your lights. It can be done via RF too.