mqtt state and devstateicon

Begonnen von kroonen, 02 Januar 2016, 15:26:06

Vorheriges Thema - Nächstes Thema

kroonen

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





scooty

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.
Fhem auf Gigabyte Brix
CUL V3 HM / CUL V3 MAX / MaxCube aFW Homematic&MAX / ZWave.me ZME_UZB1 / SDuino 433 / Velux KLF200
Homematic / MAX / Logitech Hub / ZWave / Wifi LED / div. 433 Temperatursensoren / pywws WH1080 / IO Homecontrol

kroonen