Benutzer-Werkzeuge

Webseiten-Werkzeuge


hardware:venta_connected

Unterschiede

Hier werden die Unterschiede zwischen zwei Versionen angezeigt.

Link zu dieser Vergleichsansicht

Beide Seiten der vorigen RevisionVorhergehende Überarbeitung
Nächste ÜberarbeitungBeide Seiten der Revision
hardware:venta_connected [2018/10/13 22:26] reinholdhardware:venta_connected [2018/10/13 22:35] reinhold
Zeile 181: Zeile 181:
  
 ^ Command ^ Description ^ Arguments ^ ^ Command ^ Description ^ Arguments ^
-|ventapower STAT | Turn device on/off | STAT=0 to turn OFF, STAT1 to turn ON | +|''ventapower STAT'' | Turn device on/off | STAT=0 to turn OFF, STAT1 to turn ON | 
-|ventalevel LVL |Switch the power level | LVL=1,2,3 => switch to level; LVL=0 => turn off | +|''ventalevel LVL'' |Switch the power level | LVL=1,2,3 => switch to level; LVL=0 => turn off | 
-|ventapowerbtn |Emulate power button press, irrespective of the current status/level | - | +|''ventapowerbtn'' |Emulate power button press, irrespective of current status/level | - | 
-|ventalevelup |Emulate UP button press, irrespective of the current status/level | - | +|''ventalevelup'' |Emulate UP button press, irrespective of current status/level | - | 
-|ventaerrorled STAT  |Set status of error LED (turning off is not possible, unless is was manually set to ON) |STAT=1 to turn error LED ON, STAT=0 to turn error LED OFF | +|''ventaerrorled STAT''  |Set status of error LED (turning off is not possible, unless is was manually set to ON) |STAT=1 to turn error LED ON, STAT=0 to turn error LED OFF | 
-|ventaerrorflash DUR |Turn error LED ON for given duration  | duration in ms |+|''ventaerrorflash DUR'' |Turn error LED ON for given duration  | duration in ms | 
 + 
 +===== Controlling the Humidifier in OpenHAB ===== 
 + 
 +I'm using [[http://www.openhab.org/|OpenHAB]] as my smart home controller, together with the MQTT broker mosquitto to relay messages from/to the ESPEasy devices. In ESPEasy I have set up an OpenHAB mqtt controller. 
 + 
 +To connect the Venta LW45 to OpenHAB, all I had to do was set up some items in an ''.items'' file (the MQTT binding does not have any visual setup, as it has not been ported to the OpenHAB 2.0 way of thinkin): 
 + 
 +    Switch Venta_Power "Venta LW45 Ein/Aus" <power> (power) { mqtt=">[mqtt:/Venta/Venta/cmd:command:ON:ventapower 1], >[mqtt:/Venta/Venta/cmd:command:OFF:ventapower 0], <[mqtt:/Venta/Venta/Power:state:MAP(OnOffBinary.map)]"
 +    Number Venta_Level "Venta LW45 Level" <power> (power) { mqtt=">[mqtt:/Venta/Venta/cmd:command:*:ventalevel ${command}], <[mqtt:/Venta/Venta/Level:state:default]"
 +    Switch Venta_Error "Venta LW45 Error" <alarm> (alarm) { mqtt="<[mqtt:/Venta/Venta/Error:state:MAP(OnOffBinary.map)]"
 + 
 +The ''OnOffBinary.map'' transformation file contains only the mapping of 1 to ON and 0 to OFF 
 +    1=ON 
 +    0=OFF 
 +    1.0=O 
 +    0.0=OFF
  
  
hardware/venta_connected.txt · Zuletzt geändert: 2018/10/28 19:37 von reinhold

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki