Hi,
I'm using mqtt to receive the state of the garage if it's open or closed. I also want an devastation,
but on mqtt you seen only ad state incoming publish received
I want to use a reading as state / devstateicon, is this possible?
I have this in my fhem.cfg but i want the status as state
define Garagedeur MQTT_DEVICE
attr Garagedeur IODev mqtt
attr Garagedeur autoSubscribeReadings /hooks/devices/5/SensorData/+
attr Garagedeur eventMap /1.00:Open /0.00:Closed
attr Garagedeur devStateIcon Open:fts_garage_door_10@red Closed:fts_garage_door_100
attr Garagedeur room Garage
attr Garagedeur icon fts_garage
attr Garagedeur subscribeReading_status /hooks/devices/5/SensorData/Switch
Hi,
just a try, what about:
attr Garagedeur stateFormat status
Andreas
PS: If that does not work, please include a
list Garagedeur
in your response (using codetags [button #] above.
that works thnx