Thanks, I'll install a domoticz again to my NAS Synology... I don't have choice if I want to use V_TEXT...
So I don't know how to communique between Jeedom and Domoticz efficiantly, I'll search...
Great !...
@RoushRS3 said:
it needs tot turn on and then immediately turn off, and it does not do that.
If you look at the code for my garage door node, mine does that. Everything for that is handled by the node This is the code in the main loop that does that:
//If the relay is on, shut it off
if ( digitalRead( DOOR_ACTUATOR_RELAY ) == 1) {
relayOff();
}
In the relayOff method the relay is shut off and then informs the controller that it has been shut off:
/**
* relayOff - Used to turn off the door opener relay after the TOGGLE_INTERVAL
*/
void relayOff() {
digitalWrite( DOOR_ACTUATOR_RELAY, RELAY_OFF );
//Added this to tell the controller that we shut off the relay
send( msgOpener.set(0) );
} //End relayOff
So on the controller, you should see the switch turn on, and then immediately shut off.
I would think you could do this by setting up a sensor as a switch. Another one would be set up to communicate with the first instead of sending to the gateway. The first one is made to set itself as "off"(no presence) on the gateway if it hasn't received a ping from the actual presence sensor in the past, say, 5 seconds. When it does see a ping, switch set to on.
The problem is not really concerning RGB to HSV or vice-versa (BTW if you have a working-well RGB to HSV code, i'm interested. I'm currently using the FastLED one ...)
The idea (and this is the main reason why HSV ever existed) is to get a easy and natural way to describe colors.
For anyone in the world it is easyer to say "I want a red, pale, not so bright" light, instead of a" #FFAA11" light!
When you are from a controller point of view, talking directly in HSV, allows to easily set a dim level (which is a major feature for a light, isn't it?), and a color (Hue). Devs like the Domoticz ones even dropped the Saturation at this time, but they are currently receiving (and could easily send) H(S)V values.
Also most (if not all) javascript color pickers are natively talking HSV.
About HSL vs HSV I think this not really important because it is just a story of different gamma correction / color space (if i understand well), and for devices intended as a Light (not as screen), color deviation is not a big issue. I just vote for the most used in related software (arduino lib + Javascripts color pickers), to try to match the requested color as accuratly as possible.