Hauptmenü

[gelöst] RPI_GPIO webCmd

Begonnen von wthiess, 10 März 2018, 19:22:43

Vorheriges Thema - Nächstes Thema

wthiess

Hallo Fehmler!

Ich verwende RPI_GPIO zum schalten von diversen Dingen.
Leider komm ich mit webCmd nicht zurecht. Ziel ist es nur Sympole als Zustand anzuzeigen. Die beiden Sympole werden richtig angezeigt. Zusätzlich noch on und off. Ich möchte nur die Sympole. Also ohne irgendwelchen Text.

Bitte um Hilfe

lg
Wolfgang

define HZ_WZ RPI_GPIO 27
attr HZ_WZ active_low yes
attr HZ_WZ alias Wohnzimmer
attr HZ_WZ devStateIcon on:sani_heating_level_100 off:sani_heating_level_0 .*:Restart
attr HZ_WZ direction output
attr HZ_WZ group Heizung
attr HZ_WZ room Haus,Heizung,Wohnzimmer
attr HZ_WZ webCmd ?????



Raspberry Pi 3; 8xRelais; Aptodec Nano V3.0 Pro; FS1000a; RF-5V; Hama TS33C; 3x Brennerstuhl FunkSteckdosen; 9x Dooya funk Rollo; KWL Systemair VR400; Thermokon Modbusthermostat; diverse China Modbus Thermostate; 1-wire Bus; Telegram; QuickFhem; FhemNative; Firmata; Alexa ......

Frank_Huber

Wenn du kein Text möchtest dann entferne das webCmd.
Devstateicon is dein freund.
Die commandref sagt dir wie es geht.

Mit dem Handy online, daher kurz gefasst...


wthiess

Hallo!

Komm nicht zurecht.

lg
Wolfgang
Raspberry Pi 3; 8xRelais; Aptodec Nano V3.0 Pro; FS1000a; RF-5V; Hama TS33C; 3x Brennerstuhl FunkSteckdosen; 9x Dooya funk Rollo; KWL Systemair VR400; Thermokon Modbusthermostat; diverse China Modbus Thermostate; 1-wire Bus; Telegram; QuickFhem; FhemNative; Firmata; Alexa ......

Otto123

#3
attr HZ_WZ devStateIcon on:sani_heating_level_100:off off:sani_heating_level_0:on .*:Restart
und webcmd auf ":" setzen

Siehe Doku

ZitatdevStateIcon
Erste Variante:
Leerzeichen getrennte Auflistung von regexp:icon-name:cmd Dreierpärchen, icon-name und cmd dürfen leer sein.

gruß otto
Viele Grüße aus Leipzig  ⇉  nächster Stammtisch an der Lindennaundorfer Mühle
RaspberryPi B B+ B2 B3 B3+ ZeroW,HMLAN,HMUART,Homematic,Fritz!Box 7590,WRT3200ACS-OpenWrt,Sonos,VU+,Arduino nano,ESP8266,MQTT,Zigbee,deconz

wthiess

Hallo!

Nein geht nicht! steht noch immer on off

lg
Wolfgang

#WZ Heizung Schalten
define HZ_WZ RPI_GPIO 27
attr HZ_WZ active_low yes
attr HZ_WZ alias Wohnzimmer
attr HZ_WZ devStateIcon attr HZ_WZ devStateIcon on:sani_heating_level_100:off off:sani_heating_level_0:on .*:Restart
attr HZ_WZ direction output
attr HZ_WZ group Heizung
attr HZ_WZ room Haus,Heizung,Wohnzimmer


Raspberry Pi 3; 8xRelais; Aptodec Nano V3.0 Pro; FS1000a; RF-5V; Hama TS33C; 3x Brennerstuhl FunkSteckdosen; 9x Dooya funk Rollo; KWL Systemair VR400; Thermokon Modbusthermostat; diverse China Modbus Thermostate; 1-wire Bus; Telegram; QuickFhem; FhemNative; Firmata; Alexa ......

Otto123

sorry mach attr HZ_WZ webcmd :
Viele Grüße aus Leipzig  ⇉  nächster Stammtisch an der Lindennaundorfer Mühle
RaspberryPi B B+ B2 B3 B3+ ZeroW,HMLAN,HMUART,Homematic,Fritz!Box 7590,WRT3200ACS-OpenWrt,Sonos,VU+,Arduino nano,ESP8266,MQTT,Zigbee,deconz

wthiess

Danke Otto!

Der ":" wars. Hatte ca 50 versch. Zeichen durch.

lg
Wolfgang
Raspberry Pi 3; 8xRelais; Aptodec Nano V3.0 Pro; FS1000a; RF-5V; Hama TS33C; 3x Brennerstuhl FunkSteckdosen; 9x Dooya funk Rollo; KWL Systemair VR400; Thermokon Modbusthermostat; diverse China Modbus Thermostate; 1-wire Bus; Telegram; QuickFhem; FhemNative; Firmata; Alexa ......

Otto123

aber eigentlich wäre der Doppelpunkt naheliegend:
ZitatwebCmd
Durch Doppelpunkte getrennte Auflistung von Befehlen,
eben ohne Befehle :)

Gruß Otto
Viele Grüße aus Leipzig  ⇉  nächster Stammtisch an der Lindennaundorfer Mühle
RaspberryPi B B+ B2 B3 B3+ ZeroW,HMLAN,HMUART,Homematic,Fritz!Box 7590,WRT3200ACS-OpenWrt,Sonos,VU+,Arduino nano,ESP8266,MQTT,Zigbee,deconz