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:35] reinholdhardware:venta_connected [2018/10/13 23:11] reinhold
Zeile 188: Zeile 188:
 |''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 =====+===== 7. 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. 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.
Zeile 194: Zeile 194:
 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): 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)]"+  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]"+  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)]" }+  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 The ''OnOffBinary.map'' transformation file contains only the mapping of 1 to ON and 0 to OFF
-    1=ON +  1=ON 
-    0=OFF +  0=OFF 
-    1.0=O +  1.0=O 
-    0.0=OFF+  0.0=OFF
  
 +
 +To control the humidifier, one can now simply use these items in either a sitemap or in a [[https://community.openhab.org/t/design-your-svg-floorplan-or-dashboard-for-habpanel-with-inkscape/38441|SVG floorplan]]:
 +
 +  sitemap wohnung label="Wohnung"
 +  {
 +    Frame item=Temperatur_Wohnzimmer  label="Wohnzimmer" {
 +      Switch  item=Venta_Power   label="Luftbefeuchter"
 +      Switch  item=Venta_Level   visibility=[Venta_Power==ON]  mappings=[1="1",2="2",3="3" label="Luftbefeuchter Stufe"
 +      Text    item=Venta_Error   visibility=[Venta_Power==ON]  label="Luftbefeuchter Fehler [%s]"
 +    }
 +  }
 +
 +{{ :hardware:venta_lw45:venta_lw45_openhab_sitemap.png?direct&400 |}}
 +
 +In my floorplan SVG, the humidifier looks like this can can be controlled by a simple click on the on/off icons or the level numbers:
 +
 +{{ :hardware:venta_lw45:venta_lw45_openhab_floorplan.png?direct&400 |}}
 +
 +===== Downloads =====
 +
 +I will publish all material (schematics, PCB board designs, code, etc.) on github.
 +
 +Here are the most important files for direct access:
 +  * Eagle schematics .sch and board .brd: 
 +    * {{ :hardware:venta_lw45:ventaconnected_esp8266_v1.0_2018-10-06.sch }}
 +    * {{ :hardware:venta_lw45:ventaconnected_esp8266_v1.0_2018-10-06.brd }}
 +    * {{ :hardware:venta_lw45:ventaconnected_esp8266_v1.0_2018-10-06.pdf }}
 +  * Gerber files: 
 +    * {{ :hardware:venta_lw45:ventaconnected_esp8266_v1.00_2018-10-06_gerbers.zip }}
  
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