mariusmotea / diyHue

Philips Hue emulator that is able to control multiple types of lights
Other
627 stars 107 forks source link

Deletet Hue Clients! No way to add Again ??? (Generic_ON_OFF_device.ino / NodeMCU) #163

Closed NedSin closed 6 years ago

NedSin commented 6 years ago

Hey Guys, sorry my English skills are very Bad ;)

I have inadvertently delete the devices from the "Generic On/Off Switch" sketch on "NodeMCU" in the "HUE" App.

Im not able to add them again and some tricks like change mac adress like this:

// Set as SoftAP and client WiFi.mode(WIFI_AP_STA);
// Change MAC byte mac = (byte)malloc(6); WiFi.macAddress(mac); mac[0] = 0xXX; mac[1] = 0xXX; mac[2] = 0xXX; mac[3] = 0xXX; mac[4] = 0xXX; mac[5] = 0xXX; wifi_set_macaddr(STATION_IF, mac); mac[2] = 0xCB; wifi_set_macaddr(SOFTAP_IF, mac); free(mac);

... doesnt Work.

Hue Bulbs etc. can be reseted, but what to do with ESP8266 ???

Hope i can find help here ...

Best Greeting

Ned ...

mariusmotea commented 6 years ago

Hi, so you tried to replace the mac address to look like is a new device. This might work, but it must not be necessary, once the lights are deleted they can be added back with a new scan, except if:

can you provide config.json file and the mac address of the esp in order to check what can be the problem?

Marius.

NedSin commented 6 years ago

Hey Marius, thank you for your help

Ive tried to run a rollo up down sketch and edit the generic on/off switch sketch like one item in hue u.s.w by this i have deleted all device in the emulated bridge and the original bridge ... Very bad idea ...

EDIT: Have found the config.json

the MAC: 2b:82:43:e8:3a:2c

Heres the config:

{ "alarm_config": { "mail_from": "neds", "mail_password": "", "mail_recipients": [ "neds" ], "mail_subject": "HUE ALARM TRIGGERED!", "mail_username": "neds", "smtp_port": 465, "smtp_server": "smtp.gmail.com", "virtual_light": "1" }, "capabilities": { "groups": { "available": 64 }, "lights": { "available": 63 }, "resourcelinks": { "available": 64 }, "rules": { "actions": { "available": 400 }, "available": 200, "conditions": { "available": 400 } }, "scenes": { "available": 200, "lightstates": { "available": 2048 } }, "schedules": { "available": 100 }, "sensors": { "available": 63, "clip": { "available": 63 }, "zgp": { "available": 63 }, "zll": { "available": 63 } } }, "config": { "UTC": "2018-01-31T21:38:17", "apiversion": "1.19.0", "bridgeid": "B827EBFFFE1DF3B8", "datastoreversion": 59, "dhcp": true, "factorynew": false, "gateway": "192.168.0.115", "ipaddress": "192.168.0.115", "linkbutton": true, "localtime": "2018-01-31T22:38:17", "mac": "b8:27:eb:1d:f3:b8", "modelid": "BSB002", "name": "RasPi HUE", "netmask": "255.255.255.0", "portalservices": true, "proxyaddress": "none", "proxyport": 0, "swupdate": { "checkforupdate": true }, "swversion": "1711151408", "timezone": "Europe/Bucharest", "whitelist": { "a7161538be80d40b3de98dece6e91f90": { "create date": "2018-01-31T18:30:13", "last use date": "2018-01-31T21:43:56", "name": "Hue 2#Amazon KFDOWI" }, "cfcf916a4eab2b122d829dbfdf75b6d1": { "create date": "2018-01-31T21:38:17", "last use date": "2018-01-31T22:38:17", "name": "Echo" } }, "zigbeechannel": 15 }, "deconz": { "enabled": false, "lights": {}, "port": 8080, "sensors": {} }, "groups": { "1": { "action": { "alert": "select", "bri": 1, "colormode": "hs", "effect": "none", "hue": 47104, "mode": "homeautomation", "on": false, "sat": 254, "xy": [ 0.138, 0.08 ] }, "class": "Living room", "lights": [ "12" ], "name": "Wohnzimmer", "state": { "all_on": false, "any_on": false }, "type": "Room" }, "2": { "action": { "alert": "none", "bri": 254, "colormode": "hs", "effect": "none", "hue": 47104, "mode": "homeautomation", "on": true, "sat": 254, "xy": [ 0.138, 0.08 ] }, "class": "Recreation", "lights": [ "3", "11", "13" ], "name": "Mediathek", "state": { "all_on": true, "any_on": true }, "type": "Room" }, "3": { "action": { "alert": "none", "bri": 254, "colormode": "xy", "effect": "none", "hue": 42946, "mode": "homeautomation", "on": true, "sat": 253, "xy": [ 0.1456, 0.1505 ] }, "class": "Living room", "lights": [ "2", "5", "8", "9" ], "name": "Teich", "state": { "all_on": true, "any_on": true }, "type": "Room" }, "4": { "action": { "alert": "none", "bri": 254, "mode": "homeautomation", "on": false }, "class": "Hallway", "lights": [ "6", "7" ], "name": "Flur", "state": { "all_on": false, "any_on": false }, "type": "Room" }, "5": { "action": { "alert": "none", "bri": 254, "mode": "homeautomation", "on": true }, "class": "Living room", "lights": [ "4" ], "name": "Wasser", "state": { "all_on": true, "any_on": true }, "type": "Room" }, "6": { "action": { "alert": "select", "on": false }, "class": "Kitchen", "lights": [ "10" ], "name": "Kueche", "state": { "all_on": false, "any_on": false }, "type": "Room" }, "7": { "action": { "alert": "none", "bri": 254, "on": false }, "class": "Garage", "lights": [ "14", "15" ], "name": "Prototyp", "state": { "all_on": false, "any_on": false }, "type": "Room" } }, "lights": { "1": { "modelid": "LLC012", "name": "Alarm", "state": { "alert": "none", "bri": 200, "colormode": "xy", "ct": 461, "effect": "none", "hue": 0, "on": false, "reachable": true, "sat": 0, "xy": [ 0.690456, 0.295907 ] }, "swversion": "66009461", "type": "Extended color light", "uniqueid": "1234567ffffff" }, "10": { "modelid": "Plug 01", "name": "Arbeitsplatte", "state": { "alert": "select", "on": false, "reachable": true }, "swversion": "V1.04.12", "type": "On/Off plug-in unit", "uniqueid": "98:57:ac:3a:c6:68-1" }, "11": { "modelid": "Plug 01", "name": "LED Kugel 1", "state": { "alert": "select", "on": true, "reachable": true }, "swversion": "V1.04.12", "type": "On/Off plug-in unit", "uniqueid": "98:57:ac:3a:c6:68-2" }, "12": { "modelid": "Plug 01", "name": "Eisenbahn", "state": { "alert": "select", "on": false, "reachable": true }, "swversion": "V1.04.12", "type": "On/Off plug-in unit", "uniqueid": "98:57:ac:3a:c6:68-3" }, "13": { "modelid": "Plug 01", "name": "LED Kugel 2", "state": { "alert": "select", "on": true, "reachable": true }, "swversion": "V1.04.12", "type": "On/Off plug-in unit", "uniqueid": "98:57:ac:3a:c6:68-4" }, "2": { "capabilities": { "streaming": { "proxy": false, "renderer": false } }, "manufacturername": "IKEA of Sweden", "modelid": "TRADFRI bulb GU10 W 400lm", "name": "Teichdecke 2", "state": { "alert": "none", "bri": 254, "mode": "homeautomation", "on": true, "reachable": true }, "swupdate": { "lastinstall": null, "state": "notupdatable" }, "swversion": "1.2.214", "type": "Dimmable light", "uniqueid": "00:0b:57:ff:fe:84:62:b2-01" }, "3": { "capabilities": { "streaming": { "proxy": false, "renderer": false } }, "manufacturername": "Philips", "modelid": "LST001", "name": "TV LED", "state": { "alert": "none", "bri": 254, "colormode": "hs", "effect": "none", "hue": 47104, "mode": "homeautomation", "on": true, "reachable": true, "sat": 254, "xy": [ 0.138, 0.08 ] }, "swupdate": { "lastinstall": null, "state": "transferring" }, "swversion": "5.23.1.13452", "type": "Color light", "uniqueid": "00:17:88:01:00:ca:4b:9b-0b" }, "4": { "capabilities": { "streaming": { "proxy": false, "renderer": false } }, "manufacturername": "Philips", "modelid": "LWB010", "name": "Forrest", "productid": "Philips-LWB010-1-A19DLv4", "state": { "alert": "none", "bri": 254, "mode": "homeautomation", "on": true, "reachable": true }, "swconfigid": "FF6681C4", "swupdate": { "lastinstall": "2017-12-02T13:39:53", "state": "noupdates" }, "swversion": "1.29.0_r21169", "type": "Dimmable light", "uniqueid": "00:17:88:01:03:0d:61:33-0b" }, "5": { "capabilities": { "streaming": { "proxy": false, "renderer": true } }, "manufacturername": "Philips", "modelid": "LST001", "name": "Teich LED", "state": { "alert": "none", "bri": 254, "colormode": "xy", "effect": "none", "hue": 42946, "mode": "homeautomation", "on": true, "reachable": true, "sat": 253, "xy": [ 0.1456, 0.1505 ] }, "swupdate": { "lastinstall": "2017-11-14T13:23:57", "state": "noupdates" }, "swversion": "5.105.1.21778", "type": "Color light", "uniqueid": "00:17:88:01:00:ca:55:c6-0b" }, "6": { "capabilities": { "streaming": { "proxy": false, "renderer": false } }, "manufacturername": "Philips", "modelid": "LWB010", "name": "Eingang", "productid": "Philips-LWB010-1-A19DLv3", "state": { "alert": "none", "bri": 254, "mode": "homeautomation", "on": false, "reachable": true }, "swconfigid": "C40F3F07", "swupdate": { "lastinstall": "2017-11-14T13:25:42", "state": "noupdates" }, "swversion": "1.29.0_r21169", "type": "Dimmable light", "uniqueid": "00:17:88:01:02:62:0e:34-0b" }, "7": { "capabilities": { "streaming": { "proxy": false, "renderer": false } }, "manufacturername": "Philips", "modelid": "LWB010", "name": "Treppe", "productid": "Philips-LWB010-1-A19DLv3", "state": { "alert": "none", "bri": 254, "mode": "homeautomation", "on": false, "reachable": true }, "swconfigid": "C40F3F07", "swupdate": { "lastinstall": "2017-11-14T13:24:39", "state": "noupdates" }, "swversion": "1.29.0_r21169", "type": "Dimmable light", "uniqueid": "00:17:88:01:02:62:0e:97-0b" }, "8": { "capabilities": { "streaming": { "proxy": false, "renderer": false } }, "manufacturername": "IKEA of Sweden", "modelid": "TRADFRI bulb GU10 W 400lm", "name": "Teichdecke 1", "state": { "alert": "none", "bri": 254, "mode": "homeautomation", "on": true, "reachable": true }, "swupdate": { "lastinstall": null, "state": "notupdatable" }, "swversion": "1.2.214", "type": "Dimmable light", "uniqueid": "00:0b:57:ff:fe:88:b6:ea-01" }, "9": { "capabilities": { "streaming": { "proxy": false, "renderer": false } }, "manufacturername": "IKEA of Sweden", "modelid": "TRADFRI bulb E27 WS opal 980lm", "name": "Tisch", "state": { "alert": "none", "bri": 185, "colormode": "ct", "ct": 318, "mode": "homeautomation", "on": false, "reachable": false }, "swupdate": { "lastinstall": null, "state": "notupdatable" }, "swversion": "1.2.217", "type": "Color temperature light", "uniqueid": "00:0b:57:ff:fe:bd:8a:61-01" } }, "lights_address": { "10": { "ip": "192.168.0.50", "light_nr": 1, "protocol": "native" }, "11": { "ip": "192.168.0.50", "light_nr": 2, "protocol": "native" }, "12": { "ip": "192.168.0.50", "light_nr": 3, "protocol": "native" }, "13": { "ip": "192.168.0.50", "light_nr": 4, "protocol": "native" }, "2": { "ip": "192.168.0.100", "light_id": "8", "protocol": "hue", "username": "SFeeDFIttx62l8WWMXo2JpRav0Wu7jke8hf4UiYR" }, "3": { "ip": "192.168.0.100", "light_id": "3", "protocol": "hue", "username": "SFeeDFIttx62l8WWMXo2JpRav0Wu7jke8hf4UiYR" }, "4": { "ip": "192.168.0.100", "light_id": "5", "protocol": "hue", "username": "SFeeDFIttx62l8WWMXo2JpRav0Wu7jke8hf4UiYR" }, "5": { "ip": "192.168.0.100", "light_id": "4", "protocol": "hue", "username": "SFeeDFIttx62l8WWMXo2JpRav0Wu7jke8hf4UiYR" }, "6": { "ip": "192.168.0.100", "light_id": "2", "protocol": "hue", "username": "SFeeDFIttx62l8WWMXo2JpRav0Wu7jke8hf4UiYR" }, "7": { "ip": "192.168.0.100", "light_id": "1", "protocol": "hue", "username": "SFeeDFIttx62l8WWMXo2JpRav0Wu7jke8hf4UiYR" }, "8": { "ip": "192.168.0.100", "light_id": "7", "protocol": "hue", "username": "SFeeDFIttx62l8WWMXo2JpRav0Wu7jke8hf4UiYR" }, "9": { "ip": "192.168.0.100", "light_id": "9", "protocol": "hue", "username": "SFeeDFIttx62l8WWMXo2JpRav0Wu7jke8hf4UiYR" } }, "linkbutton": { "lastlinkbuttonpushed": "1517072396", "linkbutton_auth": "SHVlOkh1ZQ==" }, "resourcelinks": {}, "rules": {}, "scenes": { "1": { "appdata": { "data": "OsXqt_r01_d03", "version": 1 }, "lastupdated": "2018-01-31T17:41:56", "lights": [ "12" ], "lightstates": { "1": { "bri": 254, "ct": 233, "on": true }, "10": { "on": true }, "11": { "on": true }, "12": { "on": true }, "13": { "on": true }, "2": { "bri": 254, "on": true }, "3": { "bri": 254, "on": true, "xy": [ 0.369, 0.3719 ] }, "4": { "bri": 254, "on": true }, "5": { "bri": 254, "on": true, "xy": [ 0.369, 0.3719 ] }, "6": { "bri": 254, "on": true }, "7": { "bri": 254, "on": true }, "8": { "bri": 254, "on": true }, "9": { "bri": 254, "ct": 233, "on": true } }, "locked": false, "name": "Konzentrieren", "owner": "a7161538be80d40b3de98dece6e91f90", "picture": "", "recycle": false, "version": 2 }, "10": { "appdata": { "data": "HBvTG_r01_d06", "version": 1 }, "lastupdated": "2018-01-31T17:41:57", "lights": [ "12" ], "lightstates": { "1": { "bri": 77, "ct": 367, "on": true }, "10": { "on": true }, "11": { "on": true }, "12": { "on": true }, "13": { "on": true }, "2": { "bri": 77, "on": true }, "3": { "bri": 77, "on": true, "xy": [ 0.4584, 0.41 ] }, "4": { "bri": 77, "on": true }, "5": { "bri": 77, "on": true, "xy": [ 0.4584, 0.41 ] }, "6": { "bri": 77, "on": true }, "7": { "bri": 77, "on": true }, "8": { "bri": 77, "on": true }, "9": { "bri": 77, "ct": 367, "on": true } }, "locked": false, "name": "Gedimmt", "owner": "a7161538be80d40b3de98dece6e91f90", "picture": "", "recycle": false, "version": 2 }, "11": { "appdata": { "data": "ks5YY_r01_d17", "version": 1 }, "lastupdated": "2018-01-31T17:41:57", "lights": [ "12" ], "lightstates": { "1": { "bri": 144, "on": true, "xy": [ 0.206744, 0.265636 ] }, "10": { "on": true }, "11": { "on": true }, "12": { "on": true }, "13": { "on": true }, "2": { "bri": 157, "on": true }, "3": { "bri": 144, "on": true, "xy": [ 0.178668, 0.39664 ] }, "4": { "bri": 157, "on": true }, "5": { "bri": 144, "on": true, "xy": [ 0.206744, 0.265636 ] }, "6": { "bri": 157, "on": true }, "7": { "bri": 157, "on": true }, "8": { "bri": 157, "on": true }, "9": { "bri": 157, "ct": 153, "on": true } }, "locked": false, "name": "Nordlichter", "owner": "a7161538be80d40b3de98dece6e91f90", "picture": "", "recycle": false, "version": 2 }, "12": { "appdata": { "data": "5fgMr_r02_d07", "version": 1 }, "lastupdated": "2018-01-31T17:42:32", "lights": [ "11", "3", "13" ], "lightstates": { "10": { "on": true }, "11": { "on": true }, "13": { "bri": 1, "on": true }, "3": { "bri": 1, "on": true, "xy": [ 0.561, 0.4042 ] } }, "locked": false, "name": "Nachtlicht", "owner": "a7161538be80d40b3de98dece6e91f90", "picture": "", "recycle": false, "version": 2 }, "13": { "appdata": { "data": "H6mL8_r02_d05", "version": 1 }, "lastupdated": "2018-01-31T17:42:32", "lights": [ "11", "3", "13" ], "lightstates": { "10": { "on": true }, "11": { "on": true }, "13": { "bri": 254, "on": true }, "3": { "bri": 254, "on": true, "xy": [ 0.4577, 0.41 ] } }, "locked": false, "name": "Hell", "owner": "a7161538be80d40b3de98dece6e91f90", "picture": "", "recycle": false, "version": 2 }, "14": { "appdata": { "data": "v4AHc_r02_d06", "version": 1 }, "lastupdated": "2018-01-31T17:42:32", "lights": [ "11", "3", "13" ], "lightstates": { "10": { "on": true }, "11": { "on": true }, "13": { "bri": 77, "on": true }, "3": { "bri": 77, "on": true, "xy": [ 0.4584, 0.41 ] } }, "locked": false, "name": "Gedimmt", "owner": "a7161538be80d40b3de98dece6e91f90", "picture": "", "recycle": false, "version": 2 }, "15": { "appdata": { "data": "DUj2O_r03_d07", "version": 1 }, "lastupdated": "2018-01-31T17:43:17", "lights": [ "2", "5", "8", "9" ], "lightstates": { "2": { "bri": 1, "on": true }, "5": { "bri": 1, "on": true, "xy": [ 0.561, 0.4042 ] }, "8": { "bri": 1, "on": true }, "9": { "bri": 1, "ct": 447, "on": true } }, "locked": false, "name": "Nachtlicht", "owner": "a7161538be80d40b3de98dece6e91f90", "picture": "", "recycle": false, "version": 2 }, "16": { "appdata": { "data": "cBkkc_r03_d06", "version": 1 }, "lastupdated": "2018-01-31T17:43:17", "lights": [ "2", "5", "8", "9" ], "lightstates": { "2": { "bri": 77, "on": true }, "5": { "bri": 77, "on": true, "xy": [ 0.4584, 0.41 ] }, "8": { "bri": 77, "on": true }, "9": { "bri": 77, "ct": 367, "on": true } }, "locked": false, "name": "Gedimmt", "owner": "a7161538be80d40b3de98dece6e91f90", "picture": "", "recycle": false, "version": 2 }, "17": { "appdata": { "data": "uAh2r_r03_d05", "version": 1 }, "lastupdated": "2018-01-31T17:43:17", "lights": [ "2", "5", "8", "9" ], "lightstates": { "2": { "bri": 254, "on": true }, "5": { "bri": 254, "on": true, "xy": [ 0.4577, 0.41 ] }, "8": { "bri": 254, "on": true }, "9": { "bri": 254, "ct": 367, "on": true } }, "locked": false, "name": "Hell", "owner": "a7161538be80d40b3de98dece6e91f90", "picture": "", "recycle": false, "version": 2 }, "18": { "appdata": { "data": "sjSHF_r03_d02", "version": 1 }, "lastupdated": "2018-01-31T17:43:17", "lights": [ "2", "5", "8", "9" ], "lightstates": { "2": { "bri": 254, "on": true }, "5": { "bri": 254, "on": true, "xy": [ 0.445, 0.4067 ] }, "8": { "bri": 254, "on": true }, "9": { "bri": 254, "ct": 346, "on": true } }, "locked": false, "name": "Lesen", "owner": "a7161538be80d40b3de98dece6e91f90", "picture": "", "recycle": false, "version": 2 }, "19": { "appdata": { "data": "kq5Xx_r03_d03", "version": 1 }, "lastupdated": "2018-01-31T17:43:17", "lights": [ "2", "5", "8", "9" ], "lightstates": { "2": { "bri": 254, "on": true }, "5": { "bri": 254, "on": true, "xy": [ 0.369, 0.3719 ] }, "8": { "bri": 254, "on": true }, "9": { "bri": 254, "ct": 233, "on": true } }, "locked": false, "name": "Konzentrieren", "owner": "a7161538be80d40b3de98dece6e91f90", "picture": "", "recycle": false, "version": 2 }, "2": { "appdata": { "data": "V1rY5_r01_d07", "version": 1 }, "lastupdated": "2018-01-31T17:41:56", "lights": [ "12" ], "lightstates": { "1": { "bri": 1, "on": true, "xy": [ 0.561, 0.4042 ] }, "10": { "on": true }, "11": { "on": true }, "12": { "on": true }, "13": { "on": true }, "2": { "bri": 1, "on": true }, "3": { "bri": 1, "on": true, "xy": [ 0.561, 0.4042 ] }, "4": { "bri": 1, "on": true }, "5": { "bri": 1, "on": true, "xy": [ 0.561, 0.4042 ] }, "6": { "bri": 1, "on": true }, "7": { "bri": 1, "on": true }, "8": { "bri": 1, "on": true }, "9": { "bri": 1, "ct": 447, "on": true } }, "locked": false, "name": "Nachtlicht", "owner": "a7161538be80d40b3de98dece6e91f90", "picture": "", "recycle": false, "version": 2 }, "20": { "appdata": { "data": "w4Uqk_r03_d01", "version": 1 }, "lastupdated": "2018-01-31T17:43:17", "lights": [ "2", "5", "8", "9" ], "lightstates": { "2": { "bri": 144, "on": true }, "5": { "bri": 144, "on": true, "xy": [ 0.5018, 0.4152 ] }, "8": { "bri": 144, "on": true }, "9": { "bri": 144, "ct": 447, "on": true } }, "locked": false, "name": "Entspannen", "owner": "a7161538be80d40b3de98dece6e91f90", "picture": "", "recycle": false, "version": 2 }, "21": { "appdata": { "data": "t97ER_r03_d04", "version": 1 }, "lastupdated": "2018-01-31T17:43:17", "lights": [ "2", "5", "8", "9" ], "lightstates": { "2": { "bri": 254, "on": true }, "5": { "bri": 254, "on": true, "xy": [ 0.3143, 0.3301 ] }, "8": { "bri": 254, "on": true }, "9": { "bri": 254, "ct": 156, "on": true } }, "locked": false, "name": "Energie tanken", "owner": "a7161538be80d40b3de98dece6e91f90", "picture": "", "recycle": false, "version": 2 }, "22": { "appdata": { "data": "KXsPS_r03_d16", "version": 1 }, "lastupdated": "2018-01-31T17:43:17", "lights": [ "2", "5", "8", "9" ], "lightstates": { "2": { "bri": 188, "on": true }, "5": { "bri": 115, "on": true, "xy": [ 0.361185, 0.28814 ] }, "8": { "bri": 188, "on": true }, "9": { "bri": 188, "ct": 319, "on": true } }, "locked": false, "name": "Tropend\u00e4mmerung", "owner": "a7161538be80d40b3de98dece6e91f90", "picture": "", "recycle": false, "version": 2 }, "23": { "appdata": { "data": "nPHh3_r03_d17", "version": 1 }, "lastupdated": "2018-01-31T17:43:17", "lights": [ "2", "5", "8", "9" ], "lightstates": { "2": { "bri": 157, "on": true }, "5": { "bri": 144, "on": true, "xy": [ 0.206744, 0.265636 ] }, "8": { "bri": 157, "on": true }, "9": { "bri": 157, "ct": 153, "on": true } }, "locked": false, "name": "Nordlichter", "owner": "a7161538be80d40b3de98dece6e91f90", "picture": "", "recycle": false, "version": 2 }, "24": { "appdata": { "data": "rGdkh_r03_d15", "version": 1 }, "lastupdated": "2018-01-31T17:43:17", "lights": [ "2", "5", "8", "9" ], "lightstates": { "2": { "bri": 237, "on": true }, "5": { "bri": 206, "on": true, "xy": [ 0.385056, 0.401137 ] }, "8": { "bri": 237, "on": true }, "9": { "bri": 237, "ct": 387, "on": true } }, "locked": false, "name": "Sonnenuntergang Savanne", "owner": "a7161538be80d40b3de98dece6e91f90", "picture": "", "recycle": false, "version": 2 }, "25": { "appdata": { "data": "aYCeS_r03_d18", "version": 1 }, "lastupdated": "2018-01-31T17:43:17", "lights": [ "2", "5", "8", "9" ], "lightstates": { "2": { "bri": 212, "on": true }, "5": { "bri": 219, "on": true, "xy": [ 0.391245, 0.295813 ] }, "8": { "bri": 212, "on": true }, "9": { "bri": 212, "ct": 214, "on": true } }, "locked": false, "name": "Fr\u00fchlingsbl\u00fcten", "owner": "a7161538be80d40b3de98dece6e91f90", "picture": "", "recycle": false, "version": 2 }, "26": { "appdata": { "data": "5gxvg_r04_d07", "version": 1 }, "lastupdated": "2018-01-31T17:43:40", "lights": [ "6", "7" ], "lightstates": { "6": { "bri": 1, "on": true }, "7": { "bri": 1, "on": true } }, "locked": false, "name": "Nachtlicht", "owner": "a7161538be80d40b3de98dece6e91f90", "picture": "", "recycle": false, "version": 2 }, "27": { "appdata": { "data": "DQm54_r04_d06", "version": 1 }, "lastupdated": "2018-01-31T17:43:40", "lights": [ "6", "7" ], "lightstates": { "6": { "bri": 77, "on": true }, "7": { "bri": 77, "on": true } }, "locked": false, "name": "Gedimmt", "owner": "a7161538be80d40b3de98dece6e91f90", "picture": "", "recycle": false, "version": 2 }, "28": { "appdata": { "data": "peGGY_r04_d05", "version": 1 }, "lastupdated": "2018-01-31T17:43:40", "lights": [ "6", "7" ], "lightstates": { "6": { "bri": 254, "on": true }, "7": { "bri": 254, "on": true } }, "locked": false, "name": "Hell", "owner": "a7161538be80d40b3de98dece6e91f90", "picture": "", "recycle": false, "version": 2 }, "29": { "appdata": { "data": "dIytE_r05_d07", "version": 1 }, "lastupdated": "2018-01-31T17:44:00", "lights": [ "4" ], "lightstates": { "13": { "bri": 1, "on": true }, "4": { "bri": 1, "on": true } }, "locked": false, "name": "Nachtlicht", "owner": "a7161538be80d40b3de98dece6e91f90", "picture": "", "recycle": false, "version": 2 }, "3": { "appdata": { "data": "VUDNb_r01_d15", "version": 1 }, "lastupdated": "2018-01-31T17:41:56", "lights": [ "12" ], "lightstates": { "1": { "bri": 206, "on": true, "xy": [ 0.385056, 0.401137 ] }, "10": { "on": true }, "11": { "on": true }, "12": { "on": true }, "13": { "on": true }, "2": { "bri": 237, "on": true }, "3": { "bri": 206, "on": true, "xy": [ 0.585927, 0.355328 ] }, "4": { "bri": 237, "on": true }, "5": { "bri": 206, "on": true, "xy": [ 0.642095, 0.333302 ] }, "6": { "bri": 237, "on": true }, "7": { "bri": 237, "on": true }, "8": { "bri": 237, "on": true }, "9": { "bri": 237, "ct": 387, "on": true } }, "locked": false, "name": "Sonnenuntergang Savanne", "owner": "a7161538be80d40b3de98dece6e91f90", "picture": "", "recycle": false, "version": 2 }, "30": { "appdata": { "data": "zjRdi_r05_d06", "version": 1 }, "lastupdated": "2018-01-31T17:44:00", "lights": [ "4" ], "lightstates": { "13": { "bri": 77, "on": true }, "4": { "bri": 77, "on": true } }, "locked": false, "name": "Gedimmt", "owner": "a7161538be80d40b3de98dece6e91f90", "picture": "", "recycle": false, "version": 2 }, "31": { "appdata": { "data": "uj6fI_r05_d05", "version": 1 }, "lastupdated": "2018-01-31T17:44:00", "lights": [ "4" ], "lightstates": { "13": { "bri": 254, "on": true }, "4": { "bri": 254, "on": true } }, "locked": false, "name": "Hell", "owner": "a7161538be80d40b3de98dece6e91f90", "picture": "", "recycle": false, "version": 2 }, "32": { "appdata": { "data": "ViAy2_r06_d05", "version": 1 }, "lastupdated": "2018-01-31T17:44:36", "lights": [ "10" ], "lightstates": { "10": { "bri": 254, "on": true }, "13": { "on": true } }, "locked": false, "name": "Hell", "owner": "a7161538be80d40b3de98dece6e91f90", "picture": "", "recycle": false, "version": 2 }, "33": { "appdata": { "data": "MxYTz_r06_d06", "version": 1 }, "lastupdated": "2018-01-31T17:44:36", "lights": [ "10" ], "lightstates": { "10": { "bri": 77, "on": true }, "13": { "on": true } }, "locked": false, "name": "Gedimmt", "owner": "a7161538be80d40b3de98dece6e91f90", "picture": "", "recycle": false, "version": 2 }, "34": { "appdata": { "data": "4ZhLl_r06_d07", "version": 1 }, "lastupdated": "2018-01-31T17:44:36", "lights": [ "10" ], "lightstates": { "10": { "bri": 1, "on": true }, "13": { "on": true } }, "locked": false, "name": "Nachtlicht", "owner": "a7161538be80d40b3de98dece6e91f90", "picture": "", "recycle": false, "version": 2 }, "4": { "appdata": { "data": "lRJrG_r01_d02", "version": 1 }, "lastupdated": "2018-01-31T17:41:56", "lights": [ "12" ], "lightstates": { "1": { "bri": 254, "ct": 346, "on": true }, "10": { "on": true }, "11": { "on": true }, "12": { "on": true }, "13": { "on": true }, "2": { "bri": 254, "on": true }, "3": { "bri": 254, "on": true, "xy": [ 0.445, 0.4067 ] }, "4": { "bri": 254, "on": true }, "5": { "bri": 254, "on": true, "xy": [ 0.445, 0.4067 ] }, "6": { "bri": 254, "on": true }, "7": { "bri": 254, "on": true }, "8": { "bri": 254, "on": true }, "9": { "bri": 254, "ct": 346, "on": true } }, "locked": false, "name": "Lesen", "owner": "a7161538be80d40b3de98dece6e91f90", "picture": "", "recycle": false, "version": 2 }, "5": { "appdata": { "data": "wQqfk_r01_d04", "version": 1 }, "lastupdated": "2018-01-31T17:41:56", "lights": [ "12" ], "lightstates": { "1": { "bri": 254, "ct": 156, "on": true }, "10": { "on": true }, "11": { "on": true }, "12": { "on": true }, "13": { "on": true }, "2": { "bri": 254, "on": true }, "3": { "bri": 254, "on": true, "xy": [ 0.3143, 0.3301 ] }, "4": { "bri": 254, "on": true }, "5": { "bri": 254, "on": true, "xy": [ 0.3143, 0.3301 ] }, "6": { "bri": 254, "on": true }, "7": { "bri": 254, "on": true }, "8": { "bri": 254, "on": true }, "9": { "bri": 254, "ct": 156, "on": true } }, "locked": false, "name": "Energie tanken", "owner": "a7161538be80d40b3de98dece6e91f90", "picture": "", "recycle": false, "version": 2 }, "6": { "appdata": { "data": "zB8Sq_r01_d18", "version": 1 }, "lastupdated": "2018-01-31T17:41:56", "lights": [ "1", "2", "3", "4", "5", "6", "7", "8", "9", "10", "11", "12", "13" ], "lightstates": { "1": { "bri": 219, "on": true, "xy": [ 0.506763, 0.266207 ] }, "10": { "on": true }, "11": { "on": true }, "12": { "on": true }, "13": { "on": true }, "2": { "bri": 212, "on": true }, "3": { "bri": 219, "on": true, "xy": [ 0.338681, 0.315482 ] }, "4": { "bri": 212, "on": true }, "5": { "bri": 219, "on": true, "xy": [ 0.338681, 0.315482 ] }, "6": { "bri": 212, "on": true }, "7": { "bri": 212, "on": true }, "8": { "bri": 212, "on": true }, "9": { "bri": 212, "ct": 214, "on": true } }, "locked": false, "name": "Fr\u00fchlingsbl\u00fcten", "owner": "a7161538be80d40b3de98dece6e91f90", "picture": "", "recycle": false, "version": 2 }, "7": { "appdata": { "data": "aIu9C_r01_d01", "version": 1 }, "lastupdated": "2018-01-31T17:41:56", "lights": [ "12" ], "lightstates": { "1": { "bri": 144, "ct": 447, "on": true }, "10": { "on": true }, "11": { "on": true }, "12": { "on": true }, "13": { "on": true }, "2": { "bri": 144, "on": true }, "3": { "bri": 144, "on": true, "xy": [ 0.369, 0.3719 ] }, "4": { "bri": 144, "on": true }, "5": { "bri": 144, "on": true, "xy": [ 0.5018, 0.4152 ] }, "6": { "bri": 144, "on": true }, "7": { "bri": 144, "on": true }, "8": { "bri": 144, "on": true }, "9": { "bri": 144, "ct": 447, "on": true } }, "locked": false, "name": "Entspannen", "owner": "a7161538be80d40b3de98dece6e91f90", "picture": "", "recycle": false, "version": 2 }, "8": { "appdata": { "data": "Jbdbq_r01_d16", "version": 1 }, "lastupdated": "2018-01-31T17:41:56", "lights": [ "1", "2", "3", "4", "5", "6", "7", "8", "9", "10", "11", "12", "13" ], "lightstates": { "1": { "bri": 115, "on": true, "xy": [ 0.361185, 0.28814 ] }, "10": { "on": true }, "11": { "on": true }, "12": { "on": true }, "13": { "on": true }, "2": { "bri": 188, "on": true }, "3": { "bri": 115, "on": true, "xy": [ 0.48883, 0.374403 ] }, "4": { "bri": 188, "on": true }, "5": { "bri": 115, "on": true, "xy": [ 0.291402, 0.223244 ] }, "6": { "bri": 188, "on": true }, "7": { "bri": 188, "on": true }, "8": { "bri": 188, "on": true }, "9": { "bri": 188, "ct": 319, "on": true } }, "locked": false, "name": "Tropend\u00e4mmerung", "owner": "a7161538be80d40b3de98dece6e91f90", "picture": "", "recycle": false, "version": 2 }, "9": { "appdata": { "data": "eynB7_r01_d05", "version": 1 }, "lastupdated": "2018-01-31T17:41:57", "lights": [ "12" ], "lightstates": { "1": { "bri": 254, "ct": 367, "on": true }, "10": { "on": true }, "11": { "on": true }, "12": { "on": true }, "13": { "on": true }, "2": { "bri": 254, "on": true }, "3": { "bri": 254, "on": true, "xy": [ 0.4577, 0.41 ] }, "4": { "bri": 254, "on": true }, "5": { "bri": 254, "on": true, "xy": [ 0.4577, 0.41 ] }, "6": { "bri": 254, "on": true }, "7": { "bri": 254, "on": true }, "8": { "bri": 254, "on": true }, "9": { "bri": 254, "ct": 367, "on": true } }, "locked": false, "name": "Hell", "owner": "a7161538be80d40b3de98dece6e91f90", "picture": "", "recycle": false, "version": 2 } }, "schedules": {}, "sensors": {} }

Greetings ...

mariusmotea commented 6 years ago

I recommend you to start with the default config from here https://github.com/mariusmotea/diyHue/blob/master/BridgeEmulator/config.json

Add the lights and create again the rooms

NedSin commented 6 years ago

Hey, thank you, i will do so ...

I think on the Original HUE Bridge ihave to reset too ?

Thank you for your help ...

Greetings

mariusmotea commented 6 years ago

No, don't reset the original bridge, is not required.

NedSin commented 6 years ago

Hey Marius,

i really at the end of my Knowing ...

i have completed format the sd card of my RasPi3 and installed Raspbian again. Installed only the diyHUE at the first time on hue app one new lamp where found and the app crash, no way to open the app without crashing.

Reinstalled Raspbian again and installed diyHUE again without any other apps (the needed are installed) Reseted the Bridge Complete and Reinstall the HUE app ...

Found the emulated bridge and add her ... Search for Lamps ... WLAN has no Internet ??? Really when i searched for lamps my android tells me WLAN has no internet and thats really so till Reboot Android Phone.

Third time reinstall Raspbian and diyHUE

Found Emulated bridge, add her and make /hue

6 of 7 Lamps are found ...

Search for lamps ... "No HUE connection" and wlan turns off (complete off not no Internet).

Go to Original HUE in the App and add the 7th Lamp ...

Back to Emulated Bridge in HUE app ...

6 of 7 lights ! the new one not there ...

Do /hue again and have doubled the 6 of 7 but the 7th is also there ...

I dont know what do do ... It really komplikated ... and all my fail ;)

No other (NodeMCU with generic 433MHZ or ON/OFF) Device found with the original bridge :(

Thank you for your Help, but I think for me is no chance to get diyHUE run correct ... why ever !!! Thats extrem sad ... perhaps someone or you Marius have an idea what i can do ...

Greetings

Ned

mariusmotea commented 6 years ago

Hi,

is not necessary to flash the sd card, in case you want to start from zero just download config.json file again from this repository and replace on sdcard, then restart the hue-emulator service with sudo systemctl restart hue-emulator

  1. Did you install the hue emulator using the automated installation script?
  2. Did you use the official arduino on_off sketch from the repo?
  3. In the config you paste i see 8 lights imported from original hue bridge. Can you tell me what is the name that is not displayed in emulated bridge?
NedSin commented 6 years ago

Hey Marius thank you for the answer.

The first thing if tried was to add the zero config.json and restart. After that i was not able to connect the emulated bridge in HUE App ... Than i Formatted the SD and start again ...

I have now a fresh Home-Assistent install with raspian lite.

I think i try it in the evening / night again ...

I install it with the automated Installation script, like i have it bevor too ...

Answers of your Question:

  1. Yes i did ...

  2. I uploaded this sketch

  3. The device is the NodeMCU with the sketch that i linked above. It was working. But i was so Stupid to delete the light, because i want to edit the sketch for a Rollo Switch ...

That Device had the IP 192.168.0.51 ... The Device 192.168.0.50 is in the config but was not showing in both HUE Bridges ...

Hope i made it.

Will Install ist i the evening again, if you have some tipps for me, would be great ...

Best greetings Marius ...

mariusmotea commented 6 years ago

one tip that can help to debug in case of issues. Start HueEmulator3.py script manually by stopping the service and run sudo /opt/hue-emulator/HueEmulator3.py this way you will have the output of every operation. In case you see any error paste here to see what generated the error.

Marius.

NedSin commented 6 years ago

Hey Marius, Today i have good news and i have Bad News ...

The Good thing is that the emulated HUE Bridge works fine with the lamps of the original HUE bridge.

Now the Problem with my two NodeMCU ESP8266:

The one who was never registered in the Hue/diyHue could be found and add in the emulated bridge. After this the Devices alway shown ass "Offline". I think the WiFiManager library works bad in my Network but i was not able to write the sketch to an normal ESP8266WiFi Library ;) ... i tryed a few times but when connected the webserver dont run. Its in my Network with the ip end 50 but really slow connection on Browser and no connection in hue. I Think this is not an issue of diyHUE, rather it be an issue of the NodeMCU or the WiFiManager ...

Now the NodeMCU wich was the trigger for the complete Problem in this thread ;( : I`m not able to add her ... no way, no chance. The WebServer runs at /detect but nothing shown in the emulated hue bridge.

than i want to make your tip with start HueEmulator3.py script manually and than that:

pi@raspberrypi:~ $ sudo /opt/hue-emulator/HueEmulator3.py
CRITICAL! Config file was not loaded

I think i try to get another MAC for the NodeMCU, in case of its possible to made it (i`m not sure about this with the WiFI Manager in the Sketch)

Have you any Idea for me ?

once again really Sorry for my Bad English and Thank you for your help because this system is a dream. Controll the whole Home via Hue at Mobiles, Macs and especially the Harmony One Ultimate.

Best Greeting

Ned ...

Edit: After Flash new firmware to both nodemcu they both have good wifi connection. The one who was in the HUE App works great so i would love it.

The second one wich do this issue cant find anyway ...

I think its not the sketch but i Show him here, perhaps there is a wrong line or something.

Edited from here :

include

include

include

include

include

include

include

// Relay One on Pin D1 const int relayone = 5; // Relay Two on Pin D2 const int relaytwo = 4;

define devicesCount 1

uint8_t devicesPins[devicesCount] = {12};

// if you want to setup static ip uncomment these 3 lines and line 72 IPAddress strip_ip ( 192, 168, 0, 51); IPAddress gateway_ip ( 192, 168, 0, 1); IPAddress subnet_mask(255, 255, 255, 255);

bool device_state[devicesCount]; byte mac[6];

ESP8266WebServer server(80);

void handleNotFound() { String message = "File Not Found\n\n"; message += "URI: "; message += server.uri(); message += "\nMethod: "; message += (server.method() == HTTP_GET) ? "GET" : "POST"; message += "\nArguments: "; message += server.args(); message += "\n"; for (uint8_t i = 0; i < server.args(); i++) { message += " " + server.argName(i) + ": " + server.arg(i) + "\n"; } server.send(404, "text/plain", message); }

void setup() {

EEPROM.begin(512); pinMode(relayone, OUTPUT); // Den PWM PIN "relaiyone" als Ausgangssignal setzen. pinMode(relaytwo, OUTPUT); // Den PWM PIN "relaisPin" als Ausgangssignal setzen. for (uint8_t ch = 0; ch < devicesCount; ch++) { pinMode(devicesPins[ch], OUTPUT); }

WiFi.config(strip_ip, gateway_ip, subnet_mask);

if (EEPROM.read(1) == 1 || (EEPROM.read(1) == 0 && EEPROM.read(0) == 1)) { for (uint8_t ch = 0; ch < devicesCount; ch++) { digitalWrite(devicesPins[ch], OUTPUT); }

}

WiFiManager wifiManager; wifiManager.autoConnect("New Hue Device");

WiFi.macAddress(mac);

// Port defaults to 8266 // ArduinoOTA.setPort(8266);

// Hostname defaults to esp8266-[ChipID] // ArduinoOTA.setHostname("myesp8266");

// No authentication by default // ArduinoOTA.setPassword((const char *)"123");

ArduinoOTA.begin();

server.on("/set", []() { uint8_t device;

for (uint8_t i = 0; i < server.args(); i++) {
  if (server.argName(i) == "light") {
    device = server.arg(i).toInt() - 1;
  }
  else if (server.argName(i) == "on") {
    if (server.arg(i) == "True" || server.arg(i) == "true") {
      if (EEPROM.read(1) == 0 && EEPROM.read(0) != 1) {
        EEPROM.write(0, 1);
        EEPROM.commit();
      }
      device_state[device] = true;
      digitalWrite(relayone, HIGH);
      delay(3000);
      digitalWrite(relayone, LOW);
    }
    else {
      if (EEPROM.read(1) == 0 && EEPROM.read(0) != 0) {
        EEPROM.write(0, 0);
        EEPROM.commit();
      }
      device_state[device] = false;
      digitalWrite(relaytwo, HIGH);
      delay(3000);
      digitalWrite(relaytwo, LOW);
    }
  }
}
server.send(200, "text/plain", "OK, state:" + device_state[device]);

});

server.on("/get", []() { uint8_t light; if (server.hasArg("light")) light = server.arg("light").toInt() - 1; String power_status; power_status = device_state[light] ? "true" : "false"; server.send(200, "text/plain", "{\"on\": " + power_status + "}"); });

server.on("/detect", []() { server.send(200, "text/plain", "{\"hue\": \"bulb\",\"lights\": " + String(devicesCount) + ",\"modelid\": \"Relay\",\"mac\": \"" + String(mac[5], HEX) + ":" + String(mac[4], HEX) + ":" + String(mac[3], HEX) + ":" + String(mac[2], HEX) + ":" + String(mac[1], HEX) + ":" + String(mac[0], HEX) + "\"}"); });

server.on("/", []() { float transitiontime = 100; if (server.hasArg("startup")) { if ( EEPROM.read(1) != server.arg("startup").toInt()) { EEPROM.write(1, server.arg("startup").toInt()); EEPROM.commit(); } }

for (uint8_t device = 0; device < devicesCount; device++) {

  if (server.hasArg("on")) {
    if (server.arg("on") == "true") {
      device_state[device] = true;
                digitalWrite(relayone, HIGH);
      delay(3000);
      digitalWrite(relayone, LOW);
      if (EEPROM.read(1) == 0 && EEPROM.read(0) != 1) {
        EEPROM.write(0, 1);
        EEPROM.commit();
      }
    } else {
      device_state[device] = false;
      digitalWrite(relaytwo, HIGH);
      delay(3000);
      digitalWrite(relaytwo, LOW);
      if (EEPROM.read(1) == 0 && EEPROM.read(0) != 0) {
        EEPROM.write(0, 0);
        EEPROM.commit();
      }
    }
  }
}
if (server.hasArg("reset")) {
  ESP.reset();
}

String http_content = "<!doctype html>";
http_content += "<html>";
http_content += "<head>";
http_content += "<meta charset=\"utf-8\">";
http_content += "<meta name=\"viewport\" content=\"width=device-width, initial-scale=1.0\">";
http_content += "<title>Light Setup</title>";
http_content += "<link rel=\"stylesheet\" href=\"https://unpkg.com/purecss@0.6.2/build/pure-min.css\">";
http_content += "</head>";
http_content += "<body>";
http_content += "<fieldset>";
http_content += "<h3>Light Setup</h3>";
http_content += "<form class=\"pure-form pure-form-aligned\" action=\"/\" method=\"post\">";
http_content += "<div class=\"pure-control-group\">";
http_content += "<label for=\"power\"><strong>Power</strong></label>";
http_content += "<a class=\"pure-button"; if (device_state[0]) http_content += "  pure-button-primary"; http_content += "\" href=\"/?on=true\">ON</a>";
http_content += "<a class=\"pure-button"; if (!device_state[0]) http_content += "  pure-button-primary"; http_content += "\" href=\"/?on=false\">OFF</a>";
http_content += "</div>";
http_content += "</fieldset>";
http_content += "</form>";
http_content += "</body>";
http_content += "</html>";

server.send(200, "text/html", http_content);

});

server.onNotFound(handleNotFound);

server.begin(); }

void loop() { ArduinoOTA.handle(); server.handleClient(); }

Thanks again 👍

mariusmotea commented 6 years ago

Hi Again,

To debug the lights, try from raspberry pi curl https://x.x.x.50/detect repalce x.x.x with your local subnet. What is the output? If there is connectivity from raspberry py to both nodemcu devices, then they must be detected.

pi@raspberrypi:~ $ sudo /opt/hue-emulator/HueEmulator3.py
CRITICAL! Config file was not loaded

my bad, you must go in /opt/hue-emulator/ directory first

cd  /opt/hue-emulator/
sudo ./HueEmulator3.py

Search for lights, see if the ip of both nodemcu boards apear in the list during scanning.

PS. backup config.json to be sure you cannot broke anything. This is automatically saved every hour (minute 00), or by accessing https://{raspberry ip}/save

Marius.

NedSin commented 6 years ago

Hey, both Nodemcu are connected to my WiFi Router, the Raspi is connected via cat5 LAN ...

the Output of /detect is:

{"hue": "bulb","lights": 1,"modelid": "Relay","mac": "2b:82:43:e8:3a:2c"}

Everthings fine but HUE emulated bridge dont find.

I have now the log, not the complete but the part i have start search. The IPs thats shown are Macs, Routers, etc. but searched not by end ip 50 or 51 or so ...

start ssdp broadcast sync with lights Starting httpd... Sending M-Search response to 192.168.0.111 192.168.0.111 - - [04/Feb/2018 17:06:29] "GET /description.xml HTTP/1.1" 200 - Sending M-Search response to 192.168.0.111 Sending M-Search response to 192.168.0.111 Sending M-Search response to 192.168.0.97 Sending M-Search response to 192.168.0.97 Sending M-Search response to 192.168.0.111 Sending M-Search response to 192.168.0.111 Sending M-Search response to 192.168.0.111 Sending M-Search response to 192.168.0.180 Sending M-Search response to 192.168.0.180 192.168.0.170 - - [04/Feb/2018 17:07:22] "GET /description.xml HTTP/1.1" 200 - Sending M-Search response to 192.168.0.180 Sending M-Search response to 192.168.0.180 Sending M-Search response to 192.168.0.111

i have no idea what to do ...

mariusmotea commented 6 years ago

One issue that i believe is the root one:

"modelid": "Relay" must be "modelid": "Plug 01" Please use the original sketch and apply changes just in header of the files where you specify the number of lights and the gpio pins.

Marius.

NedSin commented 6 years ago

THATS IT ... Yeah ... Thats the little thing what goes Wrong.

Sorry i thought that there can Add a Name that shows in the HUE app, never have think thats this is an big big fail.

I edited the sketch for Different jobs, the one above open the window shutter 30 sec. long when light in hue app is on. If light off the sketch close the window shutter 30. sec long.

This with NodeMCU and 2 Relays simple but Effektiv.

Is there a Place where i can upload this sketch for other who want make this ? It works now perfekt ...

Big Big Thank to you.

mariusmotea commented 6 years ago

Yes, for example Generic_ON_OFF_device_433Mhz was uploaded by the user Mevel. You need to fork this repo, upload you sketh with a new folder inside Lights directory and then create Pull Request. I will merge. If you never worked with git before read this

NedSin commented 6 years ago

Okay thats great.

When I complete Finish the sketch i will do upload it like you say and read the link you gave me.

Close this Issue and will go on with my SmartHUEome projekt ... I will test your qtHue and are very excited for it. Hope there is the function for own Design and Colors, that would be great ...

Thank you Marius ...