Amazon Alexa

Here is log for: Alexa Desk Lamp on
Alexa desk Lamp Off
Hope I captured what you need!

logs
2019-02-03 14:43:15.8282 Info SSDP Discovery Packet detected.
2019-02-03 14:43:15.8287 Debug Sending SSDP setup information to 192.168.1.9:62206
2019-02-03 14:43:16.3132 Debug 55-00
2019-02-03 14:43:16.3142 Debug Command succesfull
2019-02-03 14:43:16.3169 Info HomeAutomation.X10 B16 - Status.Level 0.77
2019-02-03 14:43:16.4446 Info WebServiceGateway 192.168.1.8 HTTP GET 200 /api/HomeAutomation.X10/B16/Control.Level/78 [CLOSED AFTER 3.767 seconds]
2019-02-03 14:43:16.4461 Info HTTPRequest returned with StatusCode [OK] and ReasonPhrase [OK],
2019-02-03 14:43:16.4469 Info LightsController PUT: Successfully updated state of device via HTTP request.
2019-02-03 14:43:16.5669 Info LightsController called (// GET api/{userId}/lights/{id}) Retrieving light with id[7fad71c9-aea6-4513-b712-f4c5cc726b4d]...
2019-02-03 14:43:16.5669 Info Finding device with id [7fad71c9-aea6-4513-b712-f4c5cc726b4d]...
2019-02-03 14:43:16.5678 Info Found device named [Desk Lamp] with id [7fad71c9-aea6-4513-b712-f4c5cc726b4d].
2019-02-03 14:43:16.5678 Info LightsController GET: Returned DeviceResponse for device named[Desk Lamp], with id [7fad71c9-aea6-4513-b712-f4c5cc726b4d]
2019-02-03 14:43:16.5678 Info Creating a device response object with name[Desk Lamp], id [7fad71c9-aea6-4513-b712-f4c5cc726b4d].
2019-02-03 14:43:18.7033 Info WebServiceGateway 192.168.1.152 HTTP GET 200 /api/HomeAutomation.HomeGenie/Config/Interfaces.List/ [OPEN]
2019-02-03 14:43:18.7293 Info WebServiceGateway 192.168.1.152 HTTP GET 200 /api/HomeAutomation.HomeGenie/Config/Interfaces.List/ [CLOSED AFTER 0.026 seconds]
2019-02-03 14:43:21.0688 Info LightsController PUT called. Updating light with id7fad71c9-aea6-4513-b712-f4c5cc726b4d]...
2019-02-03 14:43:21.0706 Info Finding device with id [7fad71c9-aea6-4513-b712-f4c5cc726b4d]...
2019-02-03 14:43:21.0727 Info Found device named [Desk Lamp] with id [7fad71c9-aea6-4513-b712-f4c5cc726b4d].
2019-02-03 14:43:21.0782 Info Alexa request: {"on": false}
2019-02-03 14:43:21.0806 Info Replacing IntensityValue for request "http://192.168.1.8:80/api/HomeAutomation.X10/B16/Control.Level/${intensity.percent}"
2019-02-03 14:43:21.0826 Info Request contained [${intensity.percent}] percent value. Scaling and Replacing with intensity [0].
2019-02-03 14:43:21.0845 Info Replacing IntensityValue for request ""
2019-02-03 14:43:21.0861 Info Empty request. No intensity value to replace.
2019-02-03 14:43:21.0877 Info Performing HTTPRequest URL:[http://192.168.1.8:80/api/HomeAutomation.X10/B16/Control.Level/0], Method: [], ContentType: [], Body: []
2019-02-03 14:43:21.1048 Info WebServiceGateway 192.168.1.8 HTTP GET 200 /api/HomeAutomation.X10/B16/Control.Level/0 [OPEN]
2019-02-03 14:43:21.1106 Debug 04-EC
2019-02-03 14:43:21.1200 Debug F0-00
2019-02-03 14:43:21.1210 Debug Received checksum F0-00, expected F0
2019-02-03 14:43:21.1210 Debug 00
2019-02-03 14:43:21.5532 Debug 55-00
2019-02-03 14:43:21.5538 Debug Command succesfull
2019-02-03 14:43:21.5555 Debug 86-E4
2019-02-03 14:43:21.5698 Debug 6A-00
2019-02-03 14:43:21.5698 Debug Received checksum 6A-00, expected 6A
2019-02-03 14:43:21.5707 Debug 00
2019-02-03 14:43:24.5691 Debug 55-00
2019-02-03 14:43:24.5700 Debug Command succesfull
2019-02-03 14:43:24.5729 Info HomeAutomation.X10 B16 - Status.Level 0.04
2019-02-03 14:43:24.7234 Info WebServiceGateway 192.168.1.8 HTTP GET 200 /api/HomeAutomation.X10/B16/Control.Level/0 [CLOSED AFTER 3.619 seconds]
2019-02-03 14:43:24.7252 Info HTTPRequest returned with StatusCode [OK] and ReasonPhrase [OK],
2019-02-03 14:43:24.7260 Info LightsController PUT: Successfully updated state of device via HTTP request.
2019-02-03 14:43:24.8178 Info LightsController called (// GET api/{userId}/lights/{id}) Retrieving light with id[7fad71c9-aea6-4513-b712-f4c5cc726b4d]...
2019-02-03 14:43:24.8178 Info Finding device with id [7fad71c9-aea6-4513-b712-f4c5cc726b4d]...
2019-02-03 14:43:24.8186 Info Found device named [Desk Lamp] with id [7fad71c9-aea6-4513-b712-f4c5cc726b4d].
2019-02-03 14:43:24.8186 Info LightsController GET: Returned DeviceResponse for device named[Desk Lamp], with id [7fad71c9-aea6-4513-b712-f4c5cc726b4d]
2019-02-03 14:43:24.8186 Info Creating a device response object with name[Desk Lamp], id [7fad71c9-aea6-4513-b712-f4c5cc726b4d].
2019-02-03 14:43:25.8361 Info SSDP Discovery Packet detected.
2019-02-03 14:43:25.8368 Debug Sending SSDP setup information to 192.168.1.9:62206
2019-02-03 14:43:27.5120 Info SSDP Discovery Packet detected.
2019-02-03 14:43:27.5128 Debug Sending SSDP setup information to 192.168.1.9:63931
2019-02-03 14:43:27.5353 Info SSDP Discovery Packet detected.
2019-02-03 14:43:27.5359 Debug Sending SSDP setup information to 192.168.1.9:63932
2019-02-03 14:43:27.6468 Info SSDP Discovery Packet detected.
2019-02-03 14:43:27.6468 Debug Sending SSDP setup information to 192.168.1.9:63931
2019-02-03 14:43:27.6735 Info SSDP Discovery Packet detected.
2019-02-03 14:43:27.6741 Debug Sending SSDP setup information to 192.168.1.9:63932
2019-02-03 14:43:27.7561 Info SSDP Discovery Packet detected.
2019-02-03 14:43:27.7568 Debug Sending SSDP setup information to 192.168.1.9:63931
2019-02-03 14:43:27.7835 Info SSDP Discovery Packet detected.
2019-02-03 14:43:27.7841 Debug Sending SSDP setup information to 192.168.1.9:63932
2019-02-03 14:43:28.7027 Info WebServiceGateway 192.168.1.152 HTTP GET 200 /api/HomeAutomation.HomeGenie/Config/Interfaces.List/ [OPEN]
2019-02-03 14:43:28.7119 Info WebServiceGateway 192.168.1.152 HTTP GET 200 /api/HomeAutomation.HomeGenie/Config/Interfaces.List/ [CLOSED AFTER 0.009 seconds]
2019-02-03 14:43:31.9005 Debug 5A-00
2019-02-03 14:43:31.9028 Debug C3
2019-02-03 14:43:31.9276 Debug 5A-03-02-AA-A2
1 Like

@Bounz, I just ordered Echo Input from Amazon. Tuesday, when I receive it, I will immediately inform you if it works.
About the port field error, I’ll try immediately to reinstall HB, but I think it’s the same file I used for the installations I’ve already done some days ago on RPI2 and RPI3…

1 Like

@Bounz quote=“alzy, post:124, topic:63”]
HTTPRequest URL:[http://192.168.1.8:80/api/HomeAutomation.X10/B16/Control.Level/0],
[/quote]

Ok I understand the formula intensity 255 / percent 100 to give a base line Dim if I’m correct here. Now the HTTP request Control.Level/0 is requesting the device to be dimmed to 0 not turned off. Surely the HTTP request should have been Control.Off

The MIG requests would be Control.On for on, Control.Off for off and Control.Level/x where x is a number between 1 and 99. Surely 100 is On and 0 is off.

Is this logic following correctly.

When I played with my programs and Ha-bridge (simular code) dim 100% was Off dim 0 did nothing for X10. Other protocols didnt follow the same logic probably because x10 has both dim & brighten commands Also a dim 100% didnt truely turn off a x10 device so once dimmed to 100 the controler still seen the device as on.

My testing confirms that level 0 is not OFF. The Alexa command for off dims light to where it appears to be off, but testing with an incandescent bulb showed that hours after Alexa dimmed lamp to zero the bulb was still warm. An off command needs to be sent , not a level/0

We could have a problem here using X10. I’m looking at the MIG commands x10 v ZWave. @Bounz is testing on ZWave as you can see from his logs.

@Bounz could you compare MIG commands for ZWave and X10 to see any possible issues. Maybe that’s why David didn’t include the option for dimming in the HGEB in the first place.

Sorry - I was sunning myself in mauritius… Feel free to approve your own pull requests :slight_smile: I trust you!

I didnt include the option for Dim as I didnt have any devices that support dimming!

@David_Wallis Strange that two users who deploy X10 are suffering similar symptoms while @Bounz who is using ZWave reports no problems.

Your v21 works perfectly on X10

Not sure if you’ve seen the flurry of activity from Gene in your absence. I think he has asked if you could include HGEB in the packages repo.

Well, looks like we should call Control.Off whenever Alexa’s request doesn’t contain bri field, despite is it a dimmable module or not.

So the Control.Level/x command request should read Control.Off as its is in v21. How did you refactor the code in v22 that caused this strange behaviour.

@Tuicemen, @Petediscrete, @alzy
Merged the fix, please try the newest version: https://github.com/davidwallis3101/HomegenieEchoBridge/releases

Will do. I’ll let you know the outcome.

@Bounz everything working as expected with v23. Lights now turning on and off and will Dim to level requested.

Fast work @Bounz. Bit like the old days!!!

Thanks again.

1 Like

@Bounz Thanks for the help!

@Bounz I don’t currently utilize dimming so I can’t test that but the others seem to have it working now.
Thanks for digging into it.

Looks like dimming is working now! Thanks for the help!

Hello
Can you active programmes eg “all on” or “all off” with HGbridge?
IanR

I requested that feature when Dim support was added recently.

67 posts were split to a new topic: HomeGenie-EchoBridge configuration problems