FHEM - Hausautomations-Systeme > MQTT

Fehler im Fhem Log zu MQTT_Device

(1/1)

slor:
Habe eine ganze Reihe von diesen Einträgen im Fhem Log:

--- Code: ---Use of uninitialized value $1 in concatenation (.) or string at ./FHEM/10_MQTT_DEVICE.pm line 183.
Use of uninitialized value $1 in concatenation (.) or string at ./FHEM/10_MQTT_DEVICE.pm line 184
--- Ende Code ---

Noch jemand?

eisler:
Hallo slor,

wie hast du das MQTT DEVICE konfiguriert?

Grüße
Stephan



slor:
Was willst du wissen?

--- Code: ---define Sonoff_S20_01 MQTT_DEVICE
attr Sonoff_S20_01 IODev MQTTBroker
attr Sonoff_S20_01 devStateIcon ON:rc_GREEN:OFF OFF:rc_RED:ON Offline:rc_BLUE:OFF
attr Sonoff_S20_01 publishSet On Off cmnd/S20_01/POWER
attr Sonoff_S20_01 subscribeReading_state stat/s20_01/POWER
attr Sonoff_S20_01 subscribeReading_presence tele/s20_01/LWT
attr Sonoff_S20_01 qos at-least-once
attr Sonoff_S20_01 retain 1
attr Sonoff_S20_01 room MQTT
attr Sonoff_S20_01 stateFormat {ReadingsVal($name,"presence","") eq "Offline" ? "Offline" : ReadingsVal($name,"state","")
attr Sonoff_S20_01 webCmd On:Off
--- Ende Code ---

Navigation

[0] Themen-Index

Zur normalen Ansicht wechseln