small enigma2 fhemfrontend
Thx Waldmensch for initial setup
- AptToDate
- CUL
- CUL_HM
- CUL_TX
- CUL_WS
- DOIF
- dummy
- ESPEasy
- FBDECT
- FHT
- FRITZBOX
- FS20
- GHoma
- HMCCUDEV
- HUEDevice
- Hyperion
- IT
- LightScene
- MAX
- MQTT_DEVICE
- MQTT2_DEVICE
- notify
- pilight_switch
- pilight_temp
- PRESENCE
- readingsProxy
- SYSMON
- Weather
- WOL
Enigma2
- push all files to : /usr/lib/enigma2/python/Plugins/Extensions/e2Fhem/
Server
- JsonList2 only is now working.
- See section --> "Device Specific Info"
- First setup details in settings.
- If connection is ok, supportet devices show up.
- If not, go to settings and activate logfile. Check for http-statuscode.
- No, static and dynamic csrfToken are fine.
- But static and dynamic csrfToken is semi-automatic. Hit getToken in settings.
- Http and Https are supported. Https is slower (I have to investigate).
- Different devices have different functions.
- Some have full support and some have only readings. So the basics are:
- Navigate with KeyUp, KeyDown, KeyLeft and KeyRight
- KeyOk for on,off and specials.
- ChannelUp and ChannelDown for dimming and temperature.
- Num1 till Num4 for moreChannelSwitches.
DOIF / cmdState
No spaces, fill the gap for example with "_".
Or use compound words.
"LightNightMode|OnlyDeskLightOn|MorningLightDown|MorningLightUp"
"Coffee_cooks|Coffee_off|Coffee_finished"
"Temp_unter_48°C|Temp_ok"
"WarmWaterOk|WaterCold"
Dummy fourswitch example
defmod iconDemo dummy
attr iconDemo devStateIcon 1.on:on:on:on1+off 1.off:off:on:on1+on 2.on:on:on:on2+off 3.off:off:on:on3+on 4.on:on:on:on4+off 4.off:off:on4+on
attr iconDemo readingList on1 on2 on3 on4
attr iconDemo room 03.Wohnzimmer
attr iconDemo setList on1:on,off on2:on,off on3:on,off on4:on,off
attr iconDemo stateFormat 1:on1 2:on2 3:on3 4:on4
attr iconDemo webCmd on1:on2:on3:on4
setstate iconDemo 1:on 2:off 3:on 4:off
setstate iconDemo 2019-02-25 00:25:21 on1 on
setstate iconDemo 2019-02-24 14:43:07 on2 off
setstate iconDemo 2019-02-24 16:01:57 on3 on
setstate iconDemo 2019-02-24 16:02:05 on4 off
setstate iconDemo 2019-02-23 23:14:56 state on
FBDECT
To set the temperature for thermostat, please set subType in Fhem.
attr yourThermostat subType thermostat
HMCCUDEV
At the moment only HM-CC-RT-DN supported.
Ch +/- for temp.
In Fhem you have to add one attribut.
attr yourThermostat subType thermostat
HUEGroup
Please set for best compatibility with HUEGroup the following in fhem for each group.
attr yourHUEGroup createActionReadings 1
attr yourHUEGroup createGroupReadings 1
stateFormat
In the past doublequotes (") inside HTML-Tags break matching device. But normally it is not nessesary anymore.
If you notice, something is wrong, use singlequotes (').
my $state = ReadingsVal($name, "state", "off");
return "<img src='/fhem/images/fhemSVG/rc_GREEN.svg',img width='32' height='32'<div>".sprintf(" Spannung: %.0f V Stromstärke: %.3f A Leistung: %.0f W Wifi_RSSI: %.0f %%", ReadingsVal($name,"ENERGY_Voltage",0), ReadingsVal($name,"ENERGY_Current",0), ReadingsVal($name,"ENERGY_Power",0), ReadingsVal($name,"Wifi_RSSI",0)).'</div>' if($state eq "on");
return "<img src='/fhem/images/fhemSVG/rc_RED.svg',img width='32' height='32'<div>".sprintf(" Spannung: %.0f V Stromstärke: %.3f A Leistung: %.0f W Wifi_RSSI: %.0f %%", ReadingsVal($name,"ENERGY_Voltage",0), ReadingsVal($name,"ENERGY_Current",0), ReadingsVal($name,"ENERGY_Power",0), ReadingsVal($name,"Wifi_RSSI",0)).'</div>' if($state eq "off");
return "<img src='/fhem/images/fhemSVG/rc_YELLOW.svg',img width='32' height='32'<div>".sprintf(" Spannung: %.0f V Stromstärke: %.3f A Leistung: %.0f W Wifi_RSSI: %.0f %%", ReadingsVal($name,"ENERGY_Voltage",0), ReadingsVal($name,"ENERGY_Current",0), ReadingsVal($name,"ENERGY_Power",0), ReadingsVal($name,"Wifi_RSSI",0)).'</div>' if($state eq "reboot");
return "<img src='/fhem/images/fhemSVG/rc_BLUE.svg',img width='32' height='32'<div>".sprintf(" Spannung: %.0f V Stromstärke: %.3f A Leistung: %.0f W Wifi_RSSI: %.0f %%", ReadingsVal($name,"ENERGY_Voltage",0), ReadingsVal($name,"ENERGY_Current",0), ReadingsVal($name,"ENERGY_Power",0), ReadingsVal($name,"Wifi_RSSI",0)).'</div>' if($state eq "offline");
}
autoswitch- or manualswitch for http/httpsadd static csrfTokenfinal solution to remove HTML-Tags when stateFormat is pimped for styleadd dynamic csrfTokenfull switch to jsonlist2+- add more devices
- ...