Steuerung mit FHEM und Alexa.
Alles anzeigen
Vielen Dank an @schwatter der das mit seinen Änderungen/Erweiterungen möglich gemacht hat, und @stefanru für die FHEM Device Description.
gruß pclin
stefanru schrieb:
ich kann auf der Couch mein Enigmalight steuern ohne die Fernbedienung in die Hand nehmen zu müssen. Finde ich richtig cool.
Gibt man eine Farbe vor, wechselt es in den Moodlight Mode und setzt die Farbe.
Sagt man "an" geht der Dynamic Mode an.
Mit "aus" immer aus egal in welchem Modus.
Falls du also irgendetwas für FHEM hinzufügen möchtest hier die Device Description.
Quellcode
- define Enigmalight HTTPMOD http://192.168.69.98:1414/api/statusinfo 900
- attr Enigmalight alexaName enigmalight
- attr Enigmalight alexaRoom Wohnzimmer
- attr Enigmalight extractAllJSON 1
- attr Enigmalight genericDeviceType light
- attr Enigmalight get01Name Updatelink
- attr Enigmalight get01URL http://192.168.69.98:1414/api/statusinfo
- attr Enigmalight group Licht
- attr Enigmalight homebridgeMapping On=enigmalightmode,valueOn=/dynamic|moodlamp/,cmdOn=enigmalightmode+dynamic,cmdOff=enigmalightmode+off
- attr Enigmalight icon hue_filled_lightstrip
- attr Enigmalight room Alexa
- attr Enigmalight set01FollowGet Updatelink
- attr Enigmalight set01Hint dynamic,moodlamp,off
- attr Enigmalight set01Name enigmalightmode
- attr Enigmalight set01TextArg dynamic,moodlamp,off
- attr Enigmalight set01URL http://192.168.69.98:1414/control/light?set=$val
- attr Enigmalight set02FollowGet Updatelink
- attr Enigmalight set02Hint 1,3,4,5
- attr Enigmalight set02Max 5
- attr Enigmalight set02Min 1
- attr Enigmalight set02Name current_mode
- attr Enigmalight set02URL http://192.168.69.98:1414/control/option?set=moodlamp_mode&v=$val
- attr Enigmalight set03FollowGet Updatelink
- attr Enigmalight set03Name option_moodlamp_red
- attr Enigmalight set03URL http://192.168.69.98:1414/control/option?set=moodlamp_static_color_r&v=$val
- attr Enigmalight set04FollowGet Updatelink
- attr Enigmalight set04Name option_moodlamp_green
- attr Enigmalight set04URL http://192.168.69.98:1414/control/option?set=moodlamp_static_color_g&v=$val
- attr Enigmalight set05FollowGet Updatelink
- attr Enigmalight set05Name option_moodlamp_blue
- attr Enigmalight set05URL http://192.168.69.98:1414/control/option?set=moodlamp_static_color_b&v=$val
- attr Enigmalight set06FollowGet Updatelink
- attr Enigmalight set06Name option_moodlamp_brightness
- attr Enigmalight set06URL http://192.168.69.98:1414/control/option?set=moodlamp_brightness&v=$val
- attr Enigmalight set07FollowGet Updatelink
- attr Enigmalight set07Name rgb
- attr Enigmalight set07TextArg hex
- attr Enigmalight set07URL http://192.168.69.98:1414/control/option?set=moodlamp_static_color_h&v=$val
- attr Enigmalight stateFormat Mode: enigmalightmode / Moodlampmode: current_mode
- attr Enigmalight userReadings rgb {ReadingsVal("Enigmalight","option_moodlamp_color_h",0)}
- attr Enigmalight webCmd enigmalightmode:current_mode:rgb
- attr Enigmalight webCmdLabel EL_Mode:Moodlampmode:option_moodlamp_color_h
- attr Enigmalight widgetOverride enigmalightmode:dynamic,moodlamp,off current_mode:1,3,4,5 option_moodlamp_brightness:slider,0,1,255 option_moodlamp_red:slider,0,1,255 option_moodlamp_green:slider,0,1,255 option_moodlamp_blue:slider,0,1,255 option_moodlamp_brightness:slider,0,1,255 rgb:colorpicker,RGB
- define Enigmalight_rgb cmdalias set Enigmalight rgb .* AS set Enigmalight enigmalightmode moodlamp;;set Enigmalight rgb $EVTPART2
gruß pclin
Dreambox ONE / TWO, DM920UHD, DM900UHD, DM820HD HDD + USB-HUB, Stick 64GB, USB-HDD, Wireless Touch Keyboard K400r, Wlan-Stick 11n
ONE (Flash) DP-OE2.6 (@) eigenes OE2.6, Debian-Bullseye | TWO (Flash) DP-OE2.6 (BAXII) eigenes OE2.6, Debian-Buster, Diverse
(Flash) DP-OE2.5 (BAXII) eigenes OE2.5-e2+kodi+X, debian-stretch, Diverse
AudioDSP: miniDSP 2x4HD
TV: LG OLED65BX9LB (PicCap)
Hyperion und Plugin HyperionControl auf der Dreambox ONE | TWO
ESP32 mit WLED Wlan 263 LED's SK6812-RGBW-NW 60 LED/m
Ambilight for ever
ONE (Flash) DP-OE2.6 (@) eigenes OE2.6, Debian-Bullseye | TWO (Flash) DP-OE2.6 (BAXII) eigenes OE2.6, Debian-Buster, Diverse
(Flash) DP-OE2.5 (BAXII) eigenes OE2.5-e2+kodi+X, debian-stretch, Diverse
AudioDSP: miniDSP 2x4HD
TV: LG OLED65BX9LB (PicCap)
Hyperion und Plugin HyperionControl auf der Dreambox ONE | TWO
ESP32 mit WLED Wlan 263 LED's SK6812-RGBW-NW 60 LED/m
Ambilight for ever