Updated Scripting Language (markdown)

gemu 2019-09-30 11:33:02 +02:00
parent c82b1120b6
commit c41fe9badf
1 changed files with 10 additions and 0 deletions

@ -139,6 +139,16 @@ The lines in this section are published via MQTT in a JSON payload on [TelePerio
>`>M`
[Smart Meter Interface](smart-meter-interface)
>`>H`
Alexa Hue interface (up to 32 virtual hue devices)
example:
lamp1,E,on=pwr1,hue=hue1,sat=sat1,bri=bri1,ct=ct1
>1. Name of device
>2. type of device, E=extended color, S=switch
>3. on=var1 assigns the Hue "on" variable to a scripter var (hue,sat,bri,ct) may be assigned also comma separated (for extended color)
remark on hue: hue has a range from 0-65535, simply divide it by 182 to assign it to HSBcolors hue.
If a variable does not exist, `???` is displayed for commands
If a Tasmota `SENSOR` or `STATUS` or `RESULT` message is not generated or a `Var` does not exist the destination variable is NOT updated.