Hallo zusammen,
ich brauche mal Eure Hilfe.
Ich habe mir ein MQTT Device angelegt. (Name: sonoff )
Alles geht soweit. Ich kann ein- und ausschalten und bekomme Rückmeldung, wenn am Gerät selbst per Taster geschaltet wird.
Was ich aber nicht bekomme ist eine "Ein" "Aus" Schaltfläche in der Webansicht.
Ich habe noch andere Aktoren (Name: EG_WZ_Stehlampe ), bei denen Schaltflächen angezeit werden.
Das sind aber IT (Intertechno) Geräte.
EG_WZ_Stehlampe ICON on off
Bei dem MQTT Device sehe ich nur
sonoff ICON
Die Schaltflächen "on" und "off" fehlen.
Hat jemand eine Idee was ich tun muss ?
define mqtt MQTT beaglebone.tklinux.de:1883
define sonoff1 MQTT_DEVICE
attr sonoff1 IODev mqtt
attr sonoff1 publishSet On Off cmnd/sonoff1/POWER
attr sonoff1 subscribeReading_state stat/sonoff1/POWER
attr sonoff1 devStateIcon On:on Off:off
attr sonoff1 group Lampen
attr sonoff1 qos at-most-once
attr sonoff1 retain 1
attr sonoff1 room OG_Arbeitszimmer
attr sonoff1 stateFormat state
Probiers mal mit dem Attribut webCmd
Sent from my iPad using Tapatalk
Danke.
Mit
attr sonoff1 webCmd On:Off
funktioniert es auf der Web und der WebTablet Oberfläche.
Leider nicht auf WebPhone.
Gibt es da auch nocht einen Idee für ?
Danke
Frank
Danke - hat sich erledigt.
Ich weiß zwar nicht wirklich warum, aber ich habe einen anderen Style ausgewählt, und nun klappt alles.
webCmd wird auf dem Telefon nur beim gesetzen smallscreenCommands und Telefon im Querformat (landscape) angezeigt.