FHEM Forum

FHEM - Hausautomations-Systeme => EnOcean => Thema gestartet von: phmio am 22 Dezember 2018, 23:51:10

Titel: [Patch] 10_EnOcean.pm: fix for roomCtrlMode on Pilote Wire Devices
Beitrag von: phmio am 22 Dezember 2018, 23:51:10
Hello @klaus.schauer

Here are some roomCtrlMode's fixes for Pilote Wire Devices (I have used this one from Avidsen http://www.at-mod.com/module-de-chauffage-fil-pilote.html (http://www.at-mod.com/module-de-chauffage-fil-pilote.html))

I've also added a state event for roomCtrlMode so we could use devStateIcon attribute to add a state icon.
Titel: Antw:[Patch] 10_EnOcean.pm: fix for roomCtrlMode on Pilote Wire Devices
Beitrag von: klaus.schauer am 27 Dezember 2018, 18:43:24
Thanks for pointing out the reading "roomCtrlMode". I adjusted the calculation accordingly. The reading "state" is described by the device message 0x4 "Actuator Status Response". It is therefore not usable by other device messages.
Titel: Antw:[Patch] 10_EnOcean.pm: fix for roomCtrlMode on Pilote Wire Devices
Beitrag von: phmio am 28 Dezember 2018, 23:44:06
Ok, thanks
Your are right it's not a real reading "state",  roomCtrlMode status is return by cmd = 10 "Actuator Pilot Wire Mode Response", but if is not possible to add that piece of code below then how could I show a devStateIcon in Fhem like in this attachment image.
push @event, "3:state:" . $roomCtrlMode{$roomCtrlMode}...

My devStateIcon code:
off:hpw_off@black:roomCtrlMode
comfort:hpw_comfort@orange:roomCtrlMode comfort-1:hpw_comfort-1@orange:roomCtrlMode comfort-2:hpw_comfort-2@orange:roomCtrlMode
economy:hpw_eco@green:roomCtrlMode
buildingProtection:hpw_anti-freeze@blue:roomCtrlMode


Maybe I wrong doing it like that but sorry I am still a  Fhem beginner  :)