Advertisement
CoolKitchen

Fhem Kerze

Feb 26th, 2017
1,944
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.96 KB | None | 0 0
  1. define WeMosKerze dummy
  2. attr WeMosKerze alias Japan-Lampe
  3. attr WeMosKerze devStateIcon an:light_led@red aus:light_led@green
  4. attr WeMosKerze devStateStyle {($state eq "an")?'style="color:red"':'style="color:green"'}
  5. attr WeMosKerze room Spielwiese
  6. attr WeMosKerze webCmd an:aus:kerze:blink
  7.  
  8.  
  9. define WeMosKerzeAUS notify WeMosKerze:aus {\
  10. Log 1, "WeMosKerzeAUS";;\
  11. {system("wget -q -O- 'http://192.168.178.93/tools?cmd=CANDLE:1:000000:800)'");;}\
  12. }\
  13.  
  14. define WeMosKerzeAN notify WeMosKerze:an {\
  15. Log 1, "WeMosKerzeAN";;\
  16. {system("wget -q -O- 'http://192.168.178.93/tools?cmd=CANDLE:1:ff00ff:255)'");;}\
  17. }\
  18.  
  19. attr WeMosKerzeAN room 1
  20. define WeMosKerzeKerze notify WeMosKerze:kerze {\
  21. Log 1, "WeMosKerzeKerze";;\
  22. {system("wget -q -O- 'http://192.168.178.93/tools?cmd=CANDLE:5:ff00ff:255)'");;}\
  23. }\
  24.  
  25. define WeMosKerzeblink notify WeMosKerze:blink {\
  26. Log 1, "WeMosKerzeblink";;\
  27. {system("wget -q -O- 'http://192.168.178.93/tools?cmd=CANDLE:6:ff00ff:255)'");;}\
  28. }\
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement