bwssytems / ha-bridge

Home automation bridge that emulates a Philips Hue light system and can control other systems such as a Vera, Harmony Hub, Nest, MiLight bulbs or any other system that has an http/https/tcp/udp interface. This is a compact impl to run on small format computers. This is impl started from this project https://github.com/armzilla/amazon-echo-ha-bridge.
Apache License 2.0
1.45k stars 198 forks source link

Testing for v5.3.1 Release Candidate #1192

Closed bwssytems closed 3 years ago

bwssytems commented 4 years ago

Please post your issues or success with this new release candidate

https://github.com/bwssytems/ha-bridge/releases/download/v5.3.1RC5/ha-bridge-5.3.1RC5.jar https://github.com/bwssytems/ha-bridge/releases/download/v5.3.1RC5/ha-bridge-5.3.1RC5-java11.jar

This release fixes the following issues:

1044 Alexa app, error "Device doesn't support requested value" bug question

1118 Device status update in Alexa App is not working correctly for ha-bridge devices bug duplicate question

1126 Can't get XY ColorData into URL enhancement question

1127 Can't get separate hue, saturation and brightness enhancement question

1128 Wrong color calucation in HS mode bug question

1131 Changing color temperatur is not working correctly bug question

1132 Conversion from CIE to RGB incorrect bug question

1139 Device ID creation fails bug question

1170 Alexa not sending the correct color codes duplicate

1171 Please add option: If bright request present with on, only send dim enhancement

1184 Alexa will not discover HABridge question

1191 When "Use UPNP Address Interface Only" is selected, echo cannot find ha-bridge bug

1210 [Enahnacement] Have link button timeout be configurable enhancement

1215 Alexa unable to discover recently added devices to ha-bridge duplicate question

1227 Feature request: ${intensity.previous} value passing control enhancement

1239 HA-Bridge has suddenly given up itself - Exception in thread "main" java.lang.NullPointerException bug question

1243 Alexa device discovery now broke question

1253 HABridge hue ColorDecode 0 0 0 bug question

jamietang68 commented 4 years ago

I'm using echo dot v1 & fibaro. facing issue that cant discover any device. Here's the log of me trying to discover, then turn on/off on of the device, then discover again.

05-08-2020 11:32:54.679 INFO HA Bridge (v5.3.0) reinitialization requessted.... com.bwssystems.HABridge.HABridge
05-08-2020 11:32:54.680 INFO Going to close all homes com.bwssystems.HABridge.HABridge
05-08-2020 11:32:54.681 INFO Manager close homes called.... com.bwssystems.HABridge.HomeManager
05-08-2020 11:32:54.684 INFO Closing home: com.bwssystems.HABridge.plugins.tcp.TCPHome com.bwssystems.HABridge.HomeManager
05-08-2020 11:32:54.686 INFO Closing home: com.bwssystems.HABridge.plugins.NestBridge.NestHome com.bwssystems.HABridge.HomeManager
05-08-2020 11:32:54.687 INFO Closing home: com.bwssystems.HABridge.plugins.hal.HalHome com.bwssystems.HABridge.HomeManager
05-08-2020 11:32:54.688 INFO Closing home: com.bwssystems.HABridge.plugins.NestBridge.NestHome com.bwssystems.HABridge.HomeManager
05-08-2020 11:32:54.690 INFO Closing home: com.bwssystems.HABridge.plugins.lifx.LifxHome com.bwssystems.HABridge.HomeManager
05-08-2020 11:32:54.691 INFO Closing home: com.bwssystems.HABridge.plugins.somfy.SomfyHome com.bwssystems.HABridge.HomeManager
05-08-2020 11:32:54.692 INFO Closing home: com.bwssystems.HABridge.plugins.moziot.MozIotHome com.bwssystems.HABridge.HomeManager
05-08-2020 11:32:54.694 INFO Closing home: com.bwssystems.HABridge.plugins.http.HTTPHome com.bwssystems.HABridge.HomeManager
05-08-2020 11:32:54.695 INFO Closing home: com.bwssystems.HABridge.plugins.openhab.OpenHABHome com.bwssystems.HABridge.HomeManager
05-08-2020 11:32:54.697 INFO Closing home: com.bwssystems.HABridge.plugins.hal.HalHome com.bwssystems.HABridge.HomeManager
05-08-2020 11:32:54.698 INFO Closing home: com.bwssystems.HABridge.plugins.homewizard.HomeWizardHome com.bwssystems.HABridge.HomeManager
05-08-2020 11:32:54.700 INFO Closing home: com.bwssystems.HABridge.plugins.fhem.FHEMHome com.bwssystems.HABridge.HomeManager
05-08-2020 11:32:54.701 INFO Closing home: com.bwssystems.HABridge.plugins.http.HTTPHome com.bwssystems.HABridge.HomeManager
05-08-2020 11:32:54.702 INFO Closing home: com.bwssystems.HABridge.plugins.udp.UDPHome com.bwssystems.HABridge.HomeManager
05-08-2020 11:32:54.703 INFO Closing home: com.bwssystems.HABridge.plugins.hal.HalHome com.bwssystems.HABridge.HomeManager
05-08-2020 11:32:54.704 INFO Closing home: com.bwssystems.HABridge.plugins.broadlink.BroadlinkHome com.bwssystems.HABridge.HomeManager
05-08-2020 11:32:54.705 INFO Closing home: com.bwssystems.HABridge.plugins.exec.CommandHome com.bwssystems.HABridge.HomeManager
05-08-2020 11:32:54.707 INFO Closing home: com.bwssystems.HABridge.plugins.http.HTTPHome com.bwssystems.HABridge.HomeManager
05-08-2020 11:32:54.708 INFO Closing home: com.bwssystems.HABridge.plugins.hass.HassHome com.bwssystems.HABridge.HomeManager
05-08-2020 11:32:54.709 INFO Closing home: com.bwssystems.HABridge.plugins.harmony.HarmonyHome com.bwssystems.HABridge.HomeManager
05-08-2020 11:32:54.710 INFO Closing home: com.bwssystems.HABridge.plugins.hal.HalHome com.bwssystems.HABridge.HomeManager
05-08-2020 11:32:54.711 INFO Closing home: com.bwssystems.HABridge.plugins.homegenie.HomeGenieHome com.bwssystems.HABridge.HomeManager
05-08-2020 11:32:54.713 INFO Closing home: com.bwssystems.HABridge.plugins.udp.UDPHome com.bwssystems.HABridge.HomeManager
05-08-2020 11:32:54.714 INFO Closing home: com.bwssystems.HABridge.plugins.hue.HueHome com.bwssystems.HABridge.HomeManager
05-08-2020 11:32:54.715 INFO Closing home: com.bwssystems.HABridge.plugins.harmony.HarmonyHome com.bwssystems.HABridge.HomeManager
05-08-2020 11:32:54.717 INFO Closing home: com.bwssystems.HABridge.plugins.tcp.TCPHome com.bwssystems.HABridge.HomeManager
05-08-2020 11:32:54.718 INFO Closing home: com.bwssystems.HABridge.plugins.http.HTTPHome com.bwssystems.HABridge.HomeManager
05-08-2020 11:32:54.719 INFO Closing home: com.bwssystems.HABridge.plugins.mqtt.MQTTHome com.bwssystems.HABridge.HomeManager
05-08-2020 11:32:54.720 INFO Closing home: com.bwssystems.HABridge.plugins.domoticz.DomoticzHome com.bwssystems.HABridge.HomeManager
05-08-2020 11:32:54.721 INFO Closing home: com.bwssystems.HABridge.plugins.http.HTTPHome com.bwssystems.HABridge.HomeManager
05-08-2020 11:32:54.723 INFO Closing home: com.bwssystems.HABridge.plugins.exec.CommandHome com.bwssystems.HABridge.HomeManager
05-08-2020 11:32:54.724 INFO Closing home: com.bwssystems.HABridge.plugins.http.HTTPHome com.bwssystems.HABridge.HomeManager
05-08-2020 11:32:54.729 INFO >>> Spark shutting down ... spark.embeddedserver.jetty.EmbeddedJettyServer
05-08-2020 11:32:54.773 INFO done spark.embeddedserver.jetty.EmbeddedJettyServer
05-08-2020 11:32:59.729 INFO HA Bridge (v5.3.0) initializing.... com.bwssystems.HABridge.HABridge
05-08-2020 11:32:59.730 INFO reading from config file: /home/pi/habridge/data/habridge.config com.bwssystems.HABridge.BridgeSettings
05-08-2020 11:32:59.771 INFO StaticResourceHandler configured with folder = /public spark.staticfiles.StaticFilesConfiguration
05-08-2020 11:32:59.794 INFO System control service started.... com.bwssystems.HABridge.SystemControl
05-08-2020 11:32:59.800 INFO == Spark has ignited ... spark.embeddedserver.jetty.EmbeddedJettyServer
05-08-2020 11:32:59.801 INFO >> Listening on 0.0.0.0:80 spark.embeddedserver.jetty.EmbeddedJettyServer
05-08-2020 11:32:59.808 INFO Initializing UDP response Socket... com.bwssystems.HABridge.util.UDPDatagramSender
05-08-2020 11:32:59.816 INFO UDP response Socket initialized to: 50000 com.bwssystems.HABridge.util.UDPDatagramSender
05-08-2020 11:32:59.817 INFO HTTP Home created. com.bwssystems.HABridge.plugins.http.HTTPHome
05-08-2020 11:32:59.819 INFO Harmony Home created. No Harmony devices configured. com.bwssystems.HABridge.plugins.harmony.HarmonyHome
05-08-2020 11:32:59.820 INFO Nest Home created. No Nest configured. com.bwssystems.HABridge.plugins.NestBridge.NestHome
05-08-2020 11:32:59.821 INFO Hue passthru Home created. No Hue passtrhu systems configured. com.bwssystems.HABridge.plugins.hue.HueHome
05-08-2020 11:32:59.823 INFO HAL Home created. No HAL devices configured. com.bwssystems.HABridge.plugins.hal.HalHome
05-08-2020 11:32:59.824 INFO MQTT Home created. No MQTT Clients configured. com.bwssystems.HABridge.plugins.mqtt.MQTTHome
05-08-2020 11:32:59.825 INFO HomeAssistant Home created. No HomeAssistants configured. com.bwssystems.HABridge.plugins.hass.HassHome
05-08-2020 11:32:59.826 INFO HomeWizard Home created. No HomeWizard gateways configured. com.bwssystems.HABridge.plugins.homewizard.HomeWizardHome
05-08-2020 11:32:59.827 INFO Command Home for system program execution created. com.bwssystems.HABridge.plugins.exec.CommandHome
05-08-2020 11:32:59.828 INFO TCP Home created. com.bwssystems.HABridge.plugins.tcp.TCPHome
05-08-2020 11:32:59.829 INFO UDP Home created. com.bwssystems.HABridge.plugins.udp.UDPHome
05-08-2020 11:32:59.829 INFO Vera Home created. No Veras configured. com.bwssystems.HABridge.plugins.vera.VeraHome
05-08-2020 11:32:59.829 INFO Fibaro Home created. com.bwssystems.HABridge.plugins.fibaro.FibaroHome
05-08-2020 11:32:59.830 INFO Domoticz Home created. No Domoticz devices configured. com.bwssystems.HABridge.plugins.domoticz.DomoticzHome
05-08-2020 11:32:59.831 INFO Somfy Home created. No Somfys configured. com.bwssystems.HABridge.plugins.somfy.SomfyHome
05-08-2020 11:32:59.832 INFO LifxDevice Home created. No LifxDevices configured. com.bwssystems.HABridge.plugins.lifx.LifxHome
05-08-2020 11:32:59.832 INFO OpenHAB Home created. No OpenHABs configured. com.bwssystems.HABridge.plugins.openhab.OpenHABHome
05-08-2020 11:32:59.832 INFO FHEM Home created. No FHEMs configured. com.bwssystems.HABridge.plugins.fhem.FHEMHome
05-08-2020 11:32:59.833 INFO Broadlink Home created. No Broadlinks configured. com.bwssystems.HABridge.plugins.broadlink.BroadlinkHome
05-08-2020 11:32:59.833 INFO Mozilla IOT Home created. No Mozilla IOTs configured. com.bwssystems.HABridge.plugins.moziot.MozIotHome
05-08-2020 11:32:59.834 INFO HomeGenie Home created. No HomeGenies configured. com.bwssystems.HABridge.plugins.homegenie.HomeGenieHome
05-08-2020 11:32:59.875 INFO HABridge device management service started.... com.bwssystems.HABridge.devicemanagmeent.DeviceResource
05-08-2020 11:32:59.882 INFO Hue emulator service started.... com.bwssystems.HABridge.hue.HueMulator
05-08-2020 11:32:59.889 INFO Traceupnp: upnp config address: 192.168.0.121 -useIface: false on web server: 0.0.0.0:80 com.bwssystems.HABridge.HABridge
05-08-2020 11:32:59.889 INFO Description xml service started.... com.bwssystems.HABridge.upnp.UpnpSettingsResource
05-08-2020 11:32:59.893 INFO UPNP Discovery Listener starting.... com.bwssystems.HABridge.upnp.UpnpListener
05-08-2020 11:32:59.895 INFO Traceupnp: Interface: wlan0 valid usable IP address: /192.168.0.121 com.bwssystems.HABridge.upnp.UpnpListener
05-08-2020 11:32:59.895 INFO Traceupnp: Adding wlan0 to our upnp join interface set. com.bwssystems.HABridge.upnp.UpnpListener
05-08-2020 11:32:59.897 INFO Traceupnp: Interface: lo valid usable IP address: /127.0.0.1 com.bwssystems.HABridge.upnp.UpnpListener
05-08-2020 11:32:59.899 INFO Traceupnp: Adding lo to our upnp join interface set. com.bwssystems.HABridge.upnp.UpnpListener
05-08-2020 11:32:59.899 INFO Create and run mDNS service. com.bwssystems.HABridge.upnp.UpnpListener
05-08-2020 11:32:59.906 INFO UPNP Discovery Listener running and ready.... com.bwssystems.HABridge.upnp.UpnpListener
05-08-2020 11:33:00.069 INFO Traceupnp: request of description.xml from: 192.168.0.123:80 filled in with address: 192.168.0.121:80 com.bwssystems.HABridge.upnp.UpnpSettingsResource
05-08-2020 11:33:20.569 INFO Traceupnp: sendUpnpNotify notifyTemplate1 com.bwssystems.HABridge.upnp.UpnpListener
05-08-2020 11:33:21.225 INFO Traceupnp: sendUpnpNotify notifyTemplate2 com.bwssystems.HABridge.upnp.UpnpListener
05-08-2020 11:33:21.878 INFO Traceupnp: sendUpnpNotify notifyTemplate3 com.bwssystems.HABridge.upnp.UpnpListener
05-08-2020 11:33:42.552 INFO Traceupnp: sendUpnpNotify notifyTemplate1 com.bwssystems.HABridge.upnp.UpnpListener
05-08-2020 11:33:43.205 INFO Traceupnp: sendUpnpNotify notifyTemplate2 com.bwssystems.HABridge.upnp.UpnpListener
05-08-2020 11:33:43.859 INFO Traceupnp: sendUpnpNotify notifyTemplate3 com.bwssystems.HABridge.upnp.UpnpListener
05-08-2020 11:34:04.533 INFO Traceupnp: sendUpnpNotify notifyTemplate1 com.bwssystems.HABridge.upnp.UpnpListener
05-08-2020 11:34:05.186 INFO Traceupnp: sendUpnpNotify notifyTemplate2 com.bwssystems.HABridge.upnp.UpnpListener
05-08-2020 11:34:05.840 INFO Traceupnp: sendUpnpNotify notifyTemplate3 com.bwssystems.HABridge.upnp.UpnpListener
05-08-2020 11:34:26.514 INFO Traceupnp: sendUpnpNotify notifyTemplate1 com.bwssystems.HABridge.upnp.UpnpListener
05-08-2020 11:34:27.176 INFO Traceupnp: sendUpnpNotify notifyTemplate2 com.bwssystems.HABridge.upnp.UpnpListener
05-08-2020 11:34:27.830 INFO Traceupnp: sendUpnpNotify notifyTemplate3 com.bwssystems.HABridge.upnp.UpnpListener
05-08-2020 11:34:48.504 INFO Traceupnp: sendUpnpNotify notifyTemplate1 com.bwssystems.HABridge.upnp.UpnpListener
05-08-2020 11:34:49.157 INFO Traceupnp: sendUpnpNotify notifyTemplate2 com.bwssystems.HABridge.upnp.UpnpListener
05-08-2020 11:34:49.811 INFO Traceupnp: sendUpnpNotify notifyTemplate3 com.bwssystems.HABridge.upnp.UpnpListener
05-08-2020 11:35:10.485 INFO Traceupnp: sendUpnpNotify notifyTemplate1 com.bwssystems.HABridge.upnp.UpnpListener
05-08-2020 11:35:11.138 INFO Traceupnp: sendUpnpNotify notifyTemplate2 com.bwssystems.HABridge.upnp.UpnpListener
05-08-2020 11:35:11.791 INFO Traceupnp: sendUpnpNotify notifyTemplate3 com.bwssystems.HABridge.upnp.UpnpListener
05-08-2020 11:35:32.465 INFO Traceupnp: sendUpnpNotify notifyTemplate1 com.bwssystems.HABridge.upnp.UpnpListener
05-08-2020 11:35:33.118 INFO Traceupnp: sendUpnpNotify notifyTemplate2 com.bwssystems.HABridge.upnp.UpnpListener
05-08-2020 11:35:33.532 INFO The requested route [/api//lights/115/state] has not been mapped in Spark for Accept: [application/json, text/plain, /] spark.http.matching.MatcherFilter
05-08-2020 11:35:33.615 INFO Traceupnp: hue api user create requested for device type: test_ha_bridge#192.168.0.123 and username: d78a083dca2c4fc8a695bef8c461cdf1 com.bwssystems.HABridge.hue.HueMulator
05-08-2020 11:35:33.771 INFO Traceupnp: sendUpnpNotify notifyTemplate3 com.bwssystems.HABridge.upnp.UpnpListener
05-08-2020 11:35:37.090 INFO Tracestate: hue state change requested: d78a083dca2c4fc8a695bef8c461cdf1 from 192.168.0.123 body: {"on":true} com.bwssystems.HABridge.hue.HueMulator
05-08-2020 11:35:37.100 INFO Tracestate: Calling on-off as requested: true com.bwssystems.HABridge.hue.HueMulator
05-08-2020 11:35:37.104 INFO Tracestate: Decode Json for url items: [{"item":"http://192.168.0.122:80/api/callAction?deviceID=315&name=turnOn","type":"fibaroDevice"}] com.bwssystems.HABridge.hue.HueMulator
05-08-2020 11:35:37.117 INFO Tracestate: Calling Home device handler for type : fibaroDevice com.bwssystems.HABridge.hue.HueMulator
05-08-2020 11:35:42.973 INFO Tracestate: hue state change requested: d78a083dca2c4fc8a695bef8c461cdf1 from 192.168.0.123 body: {"on":false} com.bwssystems.HABridge.hue.HueMulator
05-08-2020 11:35:42.979 INFO Tracestate: Calling on-off as requested: false com.bwssystems.HABridge.hue.HueMulator
05-08-2020 11:35:42.981 INFO Tracestate: Decode Json for url items: [{"item":"http://192.168.0.122:80/api/callAction?deviceID=315&name=turnOff","type":"fibaroDevice"}] com.bwssystems.HABridge.hue.HueMulator
05-08-2020 11:35:42.984 INFO Tracestate: Calling Home device handler for type : fibaroDevice com.bwssystems.HABridge.hue.HueMulator
05-08-2020 11:35:54.441 INFO Traceupnp: sendUpnpNotify notifyTemplate1 com.bwssystems.HABridge.upnp.UpnpListener
05-08-2020 11:35:55.095 INFO Traceupnp: sendUpnpNotify notifyTemplate2 com.bwssystems.HABridge.upnp.UpnpListener
05-08-2020 11:35:55.748 INFO Traceupnp: sendUpnpNotify notifyTemplate3 com.bwssystems.HABridge.upnp.UpnpListener

I've tried using different version, v5.2.1, v5.3.0. all of them dont work too. any advice?

Mooose1 commented 4 years ago

Have you tried v5.3.1RC1? I did get it to work, but I often have to "Discover" about 5 times before it works.

jamietang68 commented 4 years ago

yeah the log that i posted is using v5.3.1RC1 thats why i posted here. but the log says v5.3.0. not sure if it is my mistake to use wrong version or this is designed by @bwssytems that it wont be 5.3.1 before official release.

Mooose1 commented 4 years ago

That is why I posted the comment. Your log header says 5.3.0. Perhaps your version update did not take? Take a look at the HABridge headers at the top and click "About" and see if the correct version shows up there.

jamietang68 commented 4 years ago

hmm do you mind to check if yours show 5.3.1? Im away at the moment. I'll try to reinstall and probably get a v3 echo dot to try since i saw ppl reported about bug with v1

Mooose1 commented 4 years ago

MIne does show 5.3.1RC1. I checked before I posted. :-) I had no luck with V3 Dots. I bought a V2 and finally a V1, before I got it to work.

jamietang68 commented 4 years ago

ouch my bad then. will do another test tmr with 5.3.1RC1. thanks for the info!

jamietang68 commented 4 years ago

Ive tried with 5.3.1RC1, but still cant detect the devices.. any advice?

05-12-2020 08:43:48.124 INFO HA Bridge (v5.3.1RC1) initializing.... com.bwssystems.HABridge.HABridge
05-12-2020 08:43:48.125 INFO reading from config file: /home/pi/habridge/data/habridge.config com.bwssystems.HABridge.BridgeSettings
05-12-2020 08:43:48.177 INFO StaticResourceHandler configured with folder = /public spark.staticfiles.StaticFilesConfiguration
05-12-2020 08:43:48.188 INFO System control service started.... com.bwssystems.HABridge.SystemControl
05-12-2020 08:43:48.193 INFO == Spark has ignited ... spark.embeddedserver.jetty.EmbeddedJettyServer
05-12-2020 08:43:48.194 INFO >> Listening on 0.0.0.0:80 spark.embeddedserver.jetty.EmbeddedJettyServer
05-12-2020 08:43:48.200 INFO Initializing UDP response Socket... com.bwssystems.HABridge.util.UDPDatagramSender
05-12-2020 08:43:48.201 INFO UDP response Socket initialized to: 50000 com.bwssystems.HABridge.util.UDPDatagramSender
05-12-2020 08:43:48.202 INFO HTTP Home created. com.bwssystems.HABridge.plugins.http.HTTPHome
05-12-2020 08:43:48.203 INFO Harmony Home created. No Harmony devices configured. com.bwssystems.HABridge.plugins.harmony.HarmonyHome
05-12-2020 08:43:48.204 INFO Nest Home created. No Nest configured. com.bwssystems.HABridge.plugins.NestBridge.NestHome
05-12-2020 08:43:48.204 INFO Hue passthru Home created. No Hue passtrhu systems configured. com.bwssystems.HABridge.plugins.hue.HueHome
05-12-2020 08:43:48.205 INFO HAL Home created. No HAL devices configured. com.bwssystems.HABridge.plugins.hal.HalHome
05-12-2020 08:43:48.205 INFO MQTT Home created. No MQTT Clients configured. com.bwssystems.HABridge.plugins.mqtt.MQTTHome
05-12-2020 08:43:48.206 INFO HomeAssistant Home created. No HomeAssistants configured. com.bwssystems.HABridge.plugins.hass.HassHome
05-12-2020 08:43:48.206 INFO HomeWizard Home created. No HomeWizard gateways configured. com.bwssystems.HABridge.plugins.homewizard.HomeWizardHome
05-12-2020 08:43:48.207 INFO Command Home for system program execution created. com.bwssystems.HABridge.plugins.exec.CommandHome
05-12-2020 08:43:48.207 INFO TCP Home created. com.bwssystems.HABridge.plugins.tcp.TCPHome
05-12-2020 08:43:48.208 INFO UDP Home created. com.bwssystems.HABridge.plugins.udp.UDPHome
05-12-2020 08:43:48.208 INFO Vera Home created. No Veras configured. com.bwssystems.HABridge.plugins.vera.VeraHome
05-12-2020 08:43:48.209 INFO Fibaro Home created. com.bwssystems.HABridge.plugins.fibaro.FibaroHome
05-12-2020 08:43:48.210 INFO Domoticz Home created. No Domoticz devices configured. com.bwssystems.HABridge.plugins.domoticz.DomoticzHome
05-12-2020 08:43:48.211 INFO Somfy Home created. No Somfys configured. com.bwssystems.HABridge.plugins.somfy.SomfyHome
05-12-2020 08:43:48.212 INFO LifxDevice Home created. No LifxDevices configured. com.bwssystems.HABridge.plugins.lifx.LifxHome
05-12-2020 08:43:48.212 INFO OpenHAB Home created. No OpenHABs configured. com.bwssystems.HABridge.plugins.openhab.OpenHABHome
05-12-2020 08:43:48.213 INFO FHEM Home created. No FHEMs configured. com.bwssystems.HABridge.plugins.fhem.FHEMHome
05-12-2020 08:43:48.214 INFO Broadlink Home created. No Broadlinks configured. com.bwssystems.HABridge.plugins.broadlink.BroadlinkHome
05-12-2020 08:43:48.214 INFO Mozilla IOT Home created. No Mozilla IOTs configured. com.bwssystems.HABridge.plugins.moziot.MozIotHome
05-12-2020 08:43:48.214 INFO HomeGenie Home created. No HomeGenies configured. com.bwssystems.HABridge.plugins.homegenie.HomeGenieHome
05-12-2020 08:43:48.225 INFO HABridge device management service started.... com.bwssystems.HABridge.devicemanagmeent.DeviceResource
05-12-2020 08:43:48.237 INFO Hue emulator service started.... com.bwssystems.HABridge.hue.HueMulator
05-12-2020 08:43:48.247 INFO Traceupnp: upnp config address: 192.168.0.121 -useIface: false on web server: 0.0.0.0:80 com.bwssystems.HABridge.HABridge
05-12-2020 08:43:48.248 INFO Description xml service started.... com.bwssystems.HABridge.upnp.UpnpSettingsResource
05-12-2020 08:43:48.254 INFO UPNP Discovery Listener starting.... com.bwssystems.HABridge.upnp.UpnpListener
05-12-2020 08:43:48.256 INFO Traceupnp: Interface: wlan0 valid usable IP address: /192.168.0.121 com.bwssystems.HABridge.upnp.UpnpListener
05-12-2020 08:43:48.257 INFO Traceupnp: Adding wlan0 to our upnp join interface set. com.bwssystems.HABridge.upnp.UpnpListener
05-12-2020 08:43:48.258 INFO Traceupnp: Interface: lo valid usable IP address: /127.0.0.1 com.bwssystems.HABridge.upnp.UpnpListener
05-12-2020 08:43:48.259 INFO Traceupnp: Adding lo to our upnp join interface set. com.bwssystems.HABridge.upnp.UpnpListener
05-12-2020 08:43:48.260 INFO Create and run mDNS service. com.bwssystems.HABridge.upnp.UpnpListener
05-12-2020 08:43:48.273 INFO UPNP Discovery Listener running and ready.... com.bwssystems.HABridge.upnp.UpnpListener
05-12-2020 08:43:48.328 INFO Traceupnp: request of description.xml from: 192.168.0.123:80 filled in with address: 192.168.0.121:80 com.bwssystems.HABridge.upnp.UpnpSettingsResource
05-12-2020 08:44:08.946 INFO Traceupnp: sendUpnpNotify notifyTemplate1 com.bwssystems.HABridge.upnp.UpnpListener
05-12-2020 08:44:09.602 INFO Traceupnp: sendUpnpNotify notifyTemplate2 com.bwssystems.HABridge.upnp.UpnpListener
05-12-2020 08:44:10.256 INFO Traceupnp: sendUpnpNotify notifyTemplate3 com.bwssystems.HABridge.upnp.UpnpListener
05-12-2020 08:44:30.929 INFO Traceupnp: sendUpnpNotify notifyTemplate1 com.bwssystems.HABridge.upnp.UpnpListener
05-12-2020 08:44:31.582 INFO Traceupnp: sendUpnpNotify notifyTemplate2 com.bwssystems.HABridge.upnp.UpnpListener
05-12-2020 08:44:32.234 INFO Traceupnp: sendUpnpNotify notifyTemplate3 com.bwssystems.HABridge.upnp.UpnpListener
05-12-2020 08:44:52.908 INFO Traceupnp: sendUpnpNotify notifyTemplate1 com.bwssystems.HABridge.upnp.UpnpListener
05-12-2020 08:44:53.560 INFO Traceupnp: sendUpnpNotify notifyTemplate2 com.bwssystems.HABridge.upnp.UpnpListener
05-12-2020 08:44:54.213 INFO Traceupnp: sendUpnpNotify notifyTemplate3 com.bwssystems.HABridge.upnp.UpnpListener
05-12-2020 08:45:14.886 INFO Traceupnp: sendUpnpNotify notifyTemplate1 com.bwssystems.HABridge.upnp.UpnpListener
05-12-2020 08:45:15.539 INFO Traceupnp: sendUpnpNotify notifyTemplate2 com.bwssystems.HABridge.upnp.UpnpListener
05-12-2020 08:45:16.191 INFO Traceupnp: sendUpnpNotify notifyTemplate3 com.bwssystems.HABridge.upnp.UpnpListener
05-12-2020 08:45:36.865 INFO Traceupnp: sendUpnpNotify notifyTemplate1 com.bwssystems.HABridge.upnp.UpnpListener
05-12-2020 08:45:37.518 INFO Traceupnp: sendUpnpNotify notifyTemplate2 com.bwssystems.HABridge.upnp.UpnpListener
05-12-2020 08:45:38.170 INFO Traceupnp: sendUpnpNotify notifyTemplate3 com.bwssystems.HABridge.upnp.UpnpListener
05-12-2020 08:45:58.844 INFO Traceupnp: sendUpnpNotify notifyTemplate1 com.bwssystems.HABridge.upnp.UpnpListener
05-12-2020 08:45:59.496 INFO Traceupnp: sendUpnpNotify notifyTemplate2 com.bwssystems.HABridge.upnp.UpnpListener
05-12-2020 08:46:00.149 INFO Traceupnp: sendUpnpNotify notifyTemplate3 com.bwssystems.HABridge.upnp.UpnpListener
05-12-2020 08:46:20.814 INFO Traceupnp: sendUpnpNotify notifyTemplate1 com.bwssystems.HABridge.upnp.UpnpListener
05-12-2020 08:46:20.872 INFO Traceupnp: hue api user create requested for device type: test_ha_bridge#192.168.0.123 and username: ff1387f26c7f4533a968fd1bbeeab1f0 com.bwssystems.HABridge.hue.HueMulator
05-12-2020 08:46:21.466 INFO Traceupnp: sendUpnpNotify notifyTemplate2 com.bwssystems.HABridge.upnp.UpnpListener
05-12-2020 08:46:22.118 INFO Traceupnp: sendUpnpNotify notifyTemplate3 com.bwssystems.HABridge.upnp.UpnpListener
jamietang68 commented 4 years ago

update I tried to forget all echo dot in my account, restart ha bridge and it is able to discover the devices now =)

ssd65 commented 4 years ago

I got this brightness issue. "Turn On [device]", the brightness gets set to 100%. Notice this happens after not turning the device on for a while. Maybe in 6hrs.

jamietang68 commented 4 years ago

Im trying to install 5.3.1RC in my RPi4, but it shows error below. anyone knows whats wrong?

edit to add comments: I've confirmed that I've created habridge.service file and put in the code in /etc/systemd/system according to the procedure.

May 23 09:20:03 raspberrypi kernel: [ 101.215378] fuse init (API version 7.27) May 23 09:20:03 raspberrypi systemd[1]: Mounting FUSE Control File System... May 23 09:20:03 raspberrypi systemd[1]: Mounted FUSE Control File System. May 23 09:22:10 raspberrypi systemd[1]: Reloading. May 23 09:22:11 raspberrypi systemd[1]: Started HA Bridge. May 23 09:22:11 raspberrypi systemd[1414]: habridge.service: Failed to execute command: No such file or directory May 23 09:22:11 raspberrypi systemd[1414]: habridge.service: Failed at step EXEC spawning /usr/bin/java: No such file or directory May 23 09:22:11 raspberrypi systemd[1]: habridge.service: Main process exited, code=exited, status=203/EXEC May 23 09:22:11 raspberrypi systemd[1]: habridge.service: Failed with result 'exit-code'. May 23 09:22:11 raspberrypi systemd[1]: Reloading.

castellorafa commented 4 years ago

Deleting Echo from my account and starting again did the trick , thanks jamietang68 :-)

cipher2k commented 3 years ago

The log above was from an off command, when i try on then the log shows Tracestate: hue state change requested: pi from 192.168.0.2 body: {on: true}

but ha-bridge doesn't execute the script.. The curl response is only []

(On 4.5.6 curl responses {"success":{"/lights/3/state/on":true}}, And the script was executed.)

When i use for example the Test Off Button, the Command will be executed and the log shows

04-09-2020 07:17:05.616 | INFO | Tracestate: Calling on-off as requested: false | com.bwssystems.HABridge.hue.HueMulator

04-09-2020 07:17:05.635 | INFO | Tracestate: Decode Json for url items: [{"item":"/home/pi/Fernbedienung/Sonnenschutz.py up","type":"cmdDevice"}] | com.bwssystems.HABridge.hue.HueMulator

04-09-2020 07:17:05.676 | INFO | Tracestate: Calling Home device handler for type : cmdDevice | com.bwssystems.HABridge.hue.HueMulator

Same problem here after updating to latest release. I think it has something to do with the user name? Do we have to emulate creating a user first and then use the username from the response for the url?

cipher2k commented 3 years ago

After update the device status update works fine.

The REST API

curl 192.168.0.2/api/pi/lights/3 {"state":{"on":false,"bri":0,"alert":"none","reachable":true},"type":"Dimmable light","name":"Side Blind","modelid":"LWB007","manufacturername":"Philips","uniqueid":"00:17:88:5E:D3:03-03","swversion":"66012040"}

works fine, but i can not switch on/off

curl -X PUT -d "{"on": true}" "192.168.0.2/api/pi/lights/3/state" []

Did i do something wrong? Thx

Try to escape the " with \" in the request: curl -X PUT -d "{\"on\": true}" "192.168.0.2/api/pi/lights/3/state"

smartypantsuk commented 3 years ago

For those having control issues, make sure that you create a new uniquely named device to test.
I suspect some of the issues are caused by Amazon caching device information. I had trouble with Alexa finding devices that didn't exist anymore which messed up the control of some new devices.

For example, I had an old device called heating, I deleted it, updated bridge versions, then created a new device called heating. Alexa found it and i could turn it on and off but alexa would always complain that the device want responding even though it worked.

The way to check for a caching issue is to turn off all your Alexa devices, delete your device in ha-bridge, disable ha-bridge, delete the device in alexa app or web interface then do a discovery via app or web interface.

If the deleted device comes back even though it doesn't exist anymore that may be causing issues for you.

Even though I'd read that using the Alexa web interface was the way to remove all devices, it never worked properly as the deleted devices always reappeared on a discovery.

The only way I found to successfully delete devices is to remove one at a time through the app, then turn off all Alexa devices and leave off for a few hours or more, then cross your fingers. I had to do this a few times to get it to forget all my deleted devices.

Amazon need to sort there shit out.

To reiterate. When deleting ha-bridge devices, first delete from the bridge, then delete from the Alexa app, then turn off your Alexa devices, then do a discovery via the alexa app or web interface to see whether these deleted devices have actually been cleared out Amazon's cache or not. If not you'll find these devices get recreated even though they no longer exist.

bwssytems commented 3 years ago

Updated the link target for RC3, it was broken until now.

bwssytems commented 3 years ago

All color conversions look to be fixed

juergen2345 commented 3 years ago

After update the device status update works fine. The REST API curl 192.168.0.2/api/pi/lights/3 {"state":{"on":false,"bri":0,"alert":"none","reachable":true},"type":"Dimmable light","name":"Side Blind","modelid":"LWB007","manufacturername":"Philips","uniqueid":"00:17:88:5E:D3:03-03","swversion":"66012040"} works fine, but i can not switch on/off curl -X PUT -d "{"on": true}" "192.168.0.2/api/pi/lights/3/state" [] Did i do something wrong? Thx

Try to escape the " with \" in the request: curl -X PUT -d "{\"on\": true}" "192.168.0.2/api/pi/lights/3/state"

Perfect! THX