123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899 |
- COMMANDS
- Alle commands können entweder über die UART, oder über MQTT am In-Topic kommen.
- toggle x Relais Nummer x (1-3) umschalten
- on x Relais Nummer x (1-3) ein
- off x Relais Nummer x (1-3) aus
- all on alle Relais ein
- all off alle Relais aus
- loadconf komplette Konfiguration aus dem SPIFFS laden
- restart restart des ESP
- save speichert alle Konfigurationsvariablen auf den SPIFFS (aufgeteilt in derzeit 3 files)
- getconf gibt die aktuellen Konfigurationsvariablen seriell aus (über MQTT derzeit zwar aufrufbar aber die Daten werden nur seriell ausgegeben)
- delconf formatiert den SPIFFS nach einem reboot. Konfiguration damit gelöscht (ausgenommen Wifi-Konfiguration, diese ist wo anders gespeichert)
- set param value setzt Konfigurationsvariable param auf Wert value
- devName device name
- httpUser web-interface username, only applicable if user AND password is set
- httpPass web-interface password, only applicable if user AND password is set
- mqttHost MQTT broker hostname
- mqttPort MQTT broker port (1-65535)
- mqttUser MQTT username
- mqttPass MQTT password
- inTop MQTT In-topic for commands
- outTop MQTT Out-topic for status updates (Relais states will be published to "/[RelaisNr]" appended)
- outRet MQTT Out retain-flag set (0 or 1)
- willTop MQTT Last-Will topic (This is announced to the broker on connect. The broker then publishes the configured message to this topic when the connection is lost.)
- willQos MQTT Last-Will QOS
- willRet MQTT Last-Will retain flag
- willMsg MQTT Last-Will message payload
- domOutTop Domoticz Out-topic, will be subscribed to to directly interface with a Domoticz server. It should not be set to "domoticz/out" as there is a high amount of messages
- published. Instead set Domoticz-server MQTT Client Gateway interface to "out + /" ("combined") mode, create a Floorplan and add only the devices needed to it.
- outgoing messagen are on topic domoticz/out/${floorplan name}/${plan name} - which should be configured here
- Button topics:
- For every button 2 MQTT topics and payloads can be set. One for short press, one for hold, which will be published on every button event.
- btnRet Button topic retain flag
- top1 button topic 1
- top2 button topic 2
- top3 button topic 3
- topHld1 button topic hold 1
- topHld2 button topic hold 2
- topHld3 button topic hold 3
- pld1 button payload 1
- pld2 button payload 2
- pld3 button payload 3
- pldHld1 button payload hold 1
- pldHld2 button payload hold 2
- pldHld3 button payload hold 3
- domIdx1 Domoticz Idx of relais 1
- domIdx2 Domoticz Idx of relais 2
- domIdx3 Domoticz Idx of relais 3
- allOnOffTop Topic for all ON/OFF command. To be used for a central on/off switch that controls multiple devices. Should be set to a common, not device specific topic on all devices that should be grouped.
- debtime button debounce time in ms (default = 120)
- hldtime button hold time in ms (default = 750)
- GPIO-assignment:
- ioRel1 Relais 1
- ioRel2 Relais 2
- ioRel3 Relais 3
- ioBtn1 Button 1
- ioBtn2 Button 2
- ioBtn3 Button 3
- ioLed1 status LED 1
- ioLed2 status LED 2
- ioLed3 status LED 3
- invert logic level (0 = default = active LOW, 1 = active HIGH)
- invRel1 invert Relais 1
- invRel2 invert Relais 2
- invRel3 invert Relais 3
- invBtn1 invert Button 1
- invBtn2 invert Button 2
- invBtn3 invert Button 3
- invLed1 invert LED 1
- invLed2 invert LED 2
- invLed3 invert LED 3
- impulse mode for relais - if set to >0, the relais will be switched off after specified time in factors of 0.1 s (10 = 1s, 1 = 100ms ...)
- puls1 impulse Relais 1
- puls2 impulse Relais 2
- puls3 impulse Relais 3
- enable hardware
- enaRel1 Relais 1
- enaRel2 Relais 2
- enaRel3 Relais 3
- enaBtn1 Button 1
- enaBtn2 Button 2
- enaBtn3 Button 3
- enaLed1 status LED 1
- enaLed2 status LED 2
- enaLed3 status LED 3
|