FHEM Forum

FHEM => English Corner => Thema gestartet von: kroonen am 02 Januar 2016, 15:26:06

Titel: mqtt state and devstateicon
Beitrag von: kroonen am 02 Januar 2016, 15:26:06
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




Titel: Antw:mqtt state and devstateicon
Beitrag von: scooty am 03 Januar 2016, 15:37:26
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.
Titel: Antw:mqtt state and devstateicon
Beitrag von: kroonen am 04 Januar 2016, 22:18:34
that works thnx