[ESP8266] Commercial H801 WiFi RGB-dimmer topic
Moderator: leecollings
Re: [ESP8266] Commercial H801 WiFi RGB-dimmer topic
omg, i got two of these floating but then time is an issue here to.
What is still on my list is to try this one :
https://github.com/probonopd/ESP8266HueEmulator
Would be a breeze to intergrate it in domoticz when it works..!
( hmmz works with neopixels 5v, so guess thats not one to try without modification of the code )
What is still on my list is to try this one :
https://github.com/probonopd/ESP8266HueEmulator
Would be a breeze to intergrate it in domoticz when it works..!
( hmmz works with neopixels 5v, so guess thats not one to try without modification of the code )
- ledfreak3d
- Posts: 98
- Joined: Sunday 01 November 2015 15:30
- Target OS: Linux
- Domoticz version: 3.8025
- Location: Hoorn
- Contact:
Re: [ESP8266] Commercial H801 WiFi RGB-dimmer topic
nobody has a working example for this controller on domoticz ?
Unleashe the magic smoke ;)
-
- Posts: 8
- Joined: Monday 30 November 2015 11:38
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Location: Gouda, The Neatherlands
- Contact:
Re: [ESP8266] Commercial H801 WiFi RGB-dimmer topic
Very interesting!!ThinkPad wrote:I got some help from a friendly member of Tweakers.net, and it is now working
rgb.phpScript got a little bit big, but now i'm sure nothing strange will happen, because i implemented a few checks.
- Spoiler: show
I also made a small page where a color can be picked and sent to the controller:It uses 'jscolor' colorpicker: http://jscolor.com/try.php
- Spoiler: show
For scripting: this commandline command also works:Might be useful for a Lua-script later on.Code: Select all
echo -e '\xfb\xeb\xf0\x00\xff\x00\x00\x79\x97\x9d\x00' | nc -u -w1 192.168.4.23 30977
Great work!
I have some self built RGB led controllers on esp8266 wich listen on UDP.
I can reprogram then to only respond on the color-hex parameter in an UDP packet.
By sending to the broadcast IP i can switch all the esp's at the same time
They are used for X-mas lighting led-strips on the frontwall of the house
So all i have to do is strip the scripts from the parts i dont need
But wondering, do i have to put the color-picker html page as the action-on on the dashboad ?
Do i understand correctly that the color-picker script calls the php-script ?
Greets
GerardM
Domoticz newbee | arduino and Esp8266 hobbyist
-
- Posts: 890
- Joined: Tuesday 30 September 2014 8:49
- Target OS: Linux
- Domoticz version: beta
- Location: The Netherlands
- Contact:
Re: [ESP8266] Commercial H801 WiFi RGB-dimmer topic
Hi GerardM,
You can call the PHP-script like this: rgb.php?hex=ff8d00
But you can also do it directly from commandline with the 'nc' command. This saves you from having a webserver needed etc. But for the commandline part, you need to send the HEX-command, which is a bit more difficult.
You can call the PHP-script like this: rgb.php?hex=ff8d00
But you can also do it directly from commandline with the 'nc' command. This saves you from having a webserver needed etc. But for the commandline part, you need to send the HEX-command, which is a bit more difficult.
I am not active on this forum anymore.
-
- Posts: 8
- Joined: Monday 30 November 2015 11:38
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Location: Gouda, The Neatherlands
- Contact:
Re: [ESP8266] Commercial H801 WiFi RGB-dimmer topic
The php script will most def work.
I am going to reprogram the esp led controlers so they understand the hex code
But i was very interested how to use the color-picker html script in domoticz
So i can pick a color and then send it to all the led controlers.
Is it possible to do that from the dashboard ? Or do i need a frontpage ?
Which is a next project when the x-mas lights work
I am going to reprogram the esp led controlers so they understand the hex code
But i was very interested how to use the color-picker html script in domoticz
So i can pick a color and then send it to all the led controlers.
Is it possible to do that from the dashboard ? Or do i need a frontpage ?
Which is a next project when the x-mas lights work
Domoticz newbee | arduino and Esp8266 hobbyist
-
- Posts: 890
- Joined: Tuesday 30 September 2014 8:49
- Target OS: Linux
- Domoticz version: beta
- Location: The Netherlands
- Contact:
Re: [ESP8266] Commercial H801 WiFi RGB-dimmer topic
The link between the controller and Domoticz dashboard, is something i haven't done (yet?).
Main blocking point is that a virtual RGB-device doesn't spit out his current color, so i have no idea how to get that information passed on to the controller.
Second is that it probably would cost quite some time, and i don't change the color very often so it will be of little use for me.
Btw, i now have also gathered the information from this topic and put it on my Bitbucket account here.
Main blocking point is that a virtual RGB-device doesn't spit out his current color, so i have no idea how to get that information passed on to the controller.
Second is that it probably would cost quite some time, and i don't change the color very often so it will be of little use for me.
Btw, i now have also gathered the information from this topic and put it on my Bitbucket account here.
I am not active on this forum anymore.
-
- Posts: 8
- Joined: Monday 30 November 2015 11:38
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Location: Gouda, The Neatherlands
- Contact:
Re: [ESP8266] Commercial H801 WiFi RGB-dimmer topic
ThnxThinkPad wrote:Hi GerardM,
But you can also do it directly from commandline with the 'nc' command. This saves you from having a webserver needed etc. But for the commandline part, you need to send the HEX-command, which is a bit more difficult.
Any idea why nc wont sent an UDP packet to the broadcast address?
The ledcontrollers get their address from DHCP
When i use nc for a single node, it works (192.168.1.163)
When i want to send a command to all of them (192.168.1.255) it doesnt work
I checked with packetsender on windows and i dont see an incoming packet
For the rest, great help !
Last edited by GerardM on Saturday 05 December 2015 13:02, edited 1 time in total.
Domoticz newbee | arduino and Esp8266 hobbyist
-
- Posts: 890
- Joined: Tuesday 30 September 2014 8:49
- Target OS: Linux
- Domoticz version: beta
- Location: The Netherlands
- Contact:
Re: [ESP8266] Commercial H801 WiFi RGB-dimmer topic
I suppose the 192.169.1.255 is a typo ?
Normally the broadcast address is .255 i thought, so i don't know why it doesn't work. I only have one H801 box, so i can't test it unfortunately.
Normally the broadcast address is .255 i thought, so i don't know why it doesn't work. I only have one H801 box, so i can't test it unfortunately.
I am not active on this forum anymore.
-
- Posts: 8
- Joined: Monday 30 November 2015 11:38
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Location: Gouda, The Neatherlands
- Contact:
Re: [ESP8266] Commercial H801 WiFi RGB-dimmer topic
Yes, typo
Fixed
Ill guess i have to address then ony by one.
The delay this creates isnt even annoying in the chtrismaslights sequences...
Fixed
Ill guess i have to address then ony by one.
The delay this creates isnt even annoying in the chtrismaslights sequences...
Domoticz newbee | arduino and Esp8266 hobbyist
-
- Posts: 890
- Joined: Tuesday 30 September 2014 8:49
- Target OS: Linux
- Domoticz version: beta
- Location: The Netherlands
- Contact:
Re: [ESP8266] Commercial H801 WiFi RGB-dimmer topic
Maybe you can sniff the original app to see how that works. I thought it also send the commands to the broadcast IP. But it's a while ago i did the sniffing, so don't know anymore.
I am not active on this forum anymore.
-
- Posts: 8
- Joined: Monday 30 November 2015 11:38
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Location: Gouda, The Neatherlands
- Contact:
Re: [ESP8266] Commercial H801 WiFi RGB-dimmer topic
There isnt an original app
I made the led controllers myself
So i know where they listen and on what port
At the moment they listen for commands like RRR for full red, BBB for full blue etc..
B2R for fade from blue to red etc
Ill think ill keep it that way and change the script with nc
I made the led controllers myself
So i know where they listen and on what port
At the moment they listen for commands like RRR for full red, BBB for full blue etc..
B2R for fade from blue to red etc
Ill think ill keep it that way and change the script with nc
Last edited by GerardM on Sunday 06 December 2015 14:27, edited 1 time in total.
Domoticz newbee | arduino and Esp8266 hobbyist
-
- Posts: 890
- Joined: Tuesday 30 September 2014 8:49
- Target OS: Linux
- Domoticz version: beta
- Location: The Netherlands
- Contact:
Re: [ESP8266] Commercial H801 WiFi RGB-dimmer topic
Ah..... I thought you were talking about the original H801 that i mentioned in the first post...
I am not active on this forum anymore.
-
- Posts: 8
- Joined: Monday 30 November 2015 11:38
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Location: Gouda, The Neatherlands
- Contact:
Re: [ESP8266] Commercial H801 WiFi RGB-dimmer topic
Found it...Any idea why nc wont sent an UDP packet to the broadcast address?
nc cant do that by design
Domoticz newbee | arduino and Esp8266 hobbyist
-
- Posts: 890
- Joined: Tuesday 30 September 2014 8:49
- Target OS: Linux
- Domoticz version: beta
- Location: The Netherlands
- Contact:
Re: [ESP8266] Commercial H801 WiFi RGB-dimmer topic
Good to know, thanks!
I am not active on this forum anymore.
-
- Posts: 784
- Joined: Wednesday 10 December 2014 13:06
- Target OS: Linux
- Domoticz version: beta
- Location: Bordeaux France
- Contact:
Re: [ESP8266] Commercial H801 WiFi RGB-dimmer topic
Have you test it with quinled ?ledfreak3d wrote:so still no good way to support this module ?
might just have to flash it with quinled and just add 2 extra channels
Domoticz stable 3.5877 for real & Domoticz beta for test
Rfxtrxe / RFLink / Milight / Yeelight / Tasmota / MQTT / BLE / Zigate
http://domo-attitude.fr
Rfxtrxe / RFLink / Milight / Yeelight / Tasmota / MQTT / BLE / Zigate
http://domo-attitude.fr
-
- Posts: 1
- Joined: Saturday 30 January 2016 13:55
- Target OS: -
- Domoticz version:
- Contact:
Re: [ESP8266] Commercial H801 WiFi RGB-dimmer topic
Does somebody know how to get the device to connect to an existing access point without using the android app?
-
- Posts: 784
- Joined: Wednesday 10 December 2014 13:06
- Target OS: Linux
- Domoticz version: beta
- Location: Bordeaux France
- Contact:
Re: [ESP8266] Commercial H801 WiFi RGB-dimmer topic
I found on github an ESP firmware who turn it on a Milight bridge + ledstrip controller for pwm led strip.
I test everything looks OK
https://github.com/frizzby/esp8266-rgb-led
I'm starting a conversion for Ws2812b led strip : https://github.com/deennoo/ESP8266-ws2812b/tree/nodemcu
Envoyé de mon Smart'TAB 7801 en utilisant Tapatalk
I test everything looks OK
https://github.com/frizzby/esp8266-rgb-led
I'm starting a conversion for Ws2812b led strip : https://github.com/deennoo/ESP8266-ws2812b/tree/nodemcu
Envoyé de mon Smart'TAB 7801 en utilisant Tapatalk
Domoticz stable 3.5877 for real & Domoticz beta for test
Rfxtrxe / RFLink / Milight / Yeelight / Tasmota / MQTT / BLE / Zigate
http://domo-attitude.fr
Rfxtrxe / RFLink / Milight / Yeelight / Tasmota / MQTT / BLE / Zigate
http://domo-attitude.fr
-
- Posts: 890
- Joined: Tuesday 30 September 2014 8:49
- Target OS: Linux
- Domoticz version: beta
- Location: The Netherlands
- Contact:
Re: [ESP8266] Commercial H801 WiFi RGB-dimmer topic
This firmware looks interesting: https://eryk.io/2015/10/esp8266-based-w ... ller-h801/
It seems this: https://github.com/jeffeb3/esp8266_lights is based on the code from eryk.io, but i don't see actually what has changed in comparision with the original code form eryk.io?Using a simple http call to the device on http://192.168.0.xx/rgb/ff0000 it is possible to send RGB values in HEX and let the color of the leds change to this color.
I am not active on this forum anymore.
-
- Posts: 784
- Joined: Wednesday 10 December 2014 13:06
- Target OS: Linux
- Domoticz version: beta
- Location: Bordeaux France
- Contact:
Re: [ESP8266] Commercial H801 WiFi RGB-dimmer topic
Now that communication protocole is done with original FW, isn't possible to include it as a "normal" hardware on Domoticz, using Milight or Philips Hue as exemple ?
A french homeautomation software juste release a plugin for it, to use it with the original Fw...
A french homeautomation software juste release a plugin for it, to use it with the original Fw...
Domoticz stable 3.5877 for real & Domoticz beta for test
Rfxtrxe / RFLink / Milight / Yeelight / Tasmota / MQTT / BLE / Zigate
http://domo-attitude.fr
Rfxtrxe / RFLink / Milight / Yeelight / Tasmota / MQTT / BLE / Zigate
http://domo-attitude.fr
Who is online
Users browsing this forum: No registered users and 0 guests