Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- esphome:
- name: display
- platform: ESP8266
- board: nodemcuv2
- wifi:
- ssid: XXXXXX
- password: XXXXX
- # Enable fallback hotspot (captive portal) in case wifi connection fails
- ap:
- ssid: "Display Fallback Hotspot"
- password: "tPnpzpNCGLRy"
- captive_portal:
- # Enable logging
- logger:
- # Enable Home Assistant API
- api:
- ota:
- mqtt:
- broker: 10.0.1.2
- # Example configuration entry
- i2c:
- sda: D1
- scl: D2
- text_sensor:
- # Wavin Værksted
- - platform: homeassistant
- id: status_wavin_vaerksted
- entity_id: climate.vaerksted
- internal: true
- - platform: mqtt_subscribe
- id: target_wavin_vaerksted
- topic: heat/floorB4E62D292F41/0/target
- internal: true
- - platform: mqtt_subscribe
- id: temp_wavin_vaerksted
- topic: heat/floorB4E62D292F41/0/current
- internal: true
- # Wavin Victors værelse
- - platform: homeassistant
- id: status_wavin_victor
- entity_id: climate.victors_vaerelse
- internal: true
- - platform: mqtt_subscribe
- id: target_wavin_victor
- topic: heat/floorB4E62D292F41/1/target
- internal: true
- - platform: mqtt_subscribe
- id: temp_wavin_victor
- topic: heat/floorB4E62D292F41/1/current
- internal: true
- # Wavin Gæstebadeværelse
- - platform: homeassistant
- id: status_wavin_gaestebadevaerelse
- entity_id: climate.gaestebadevaerelse
- internal: true
- - platform: mqtt_subscribe
- id: target_wavin_gaestebadevaerelse
- topic: heat/floorB4E62D292F41/2/target
- internal: true
- - platform: mqtt_subscribe
- id: temp_wavin_gaestebadevaerelse
- topic: heat/floorB4E62D292F41/2/current
- internal: true
- # Wavin Gang Bryggers
- - platform: homeassistant
- id: status_wavin_gang_bryggers
- entity_id: climate.gang_bryggers
- internal: true
- - platform: mqtt_subscribe
- id: target_wavin_gang_bryggers
- topic: heat/floorB4E62D292F41/3/target
- internal: true
- - platform: mqtt_subscribe
- id: temp_wavin_gang_bryggers
- topic: heat/floorB4E62D292F41/3/current
- internal: true
- display:
- - platform: lcd_pcf8574
- dimensions: 20x4
- address: 0x27
- lambda: |-
- it.print(0,0,"1:");
- if (id(status_wavin_vaerksted).has_state()){
- it.printf(2,0,"%s", id(status_wavin_vaerksted).state.c_str());}
- if (id(target_wavin_vaerksted).has_state()) {
- it.printf(7,0,"S:%s", id(target_wavin_vaerksted).state.c_str());}
- if (id(temp_wavin_vaerksted).has_state()){
- it.printf(14,0,"T:%s", id(temp_wavin_vaerksted).state.c_str());}
- it.print(0,1,"2:");
- if (id(status_wavin_victor).has_state()){
- it.printf(2,1,"%s", id(status_wavin_victor).state.c_str());}
- if (id(target_wavin_victor).has_state()) {
- it.printf(7,1,"S:%s", id(target_wavin_victor).state.c_str());}
- if (id(temp_wavin_victor).has_state()){
- it.printf(14,1,"T:%s", id(temp_wavin_victor).state.c_str());}
- it.print(0,2,"3:");
- if (id(status_wavin_gaestebadevaerelse).has_state()){
- it.printf(2,2,"%s", id(status_wavin_gaestebadevaerelse).state.c_str());}
- if (id(target_wavin_gaestebadevaerelse).has_state()) {
- it.printf(7,2,"S:%s", id(target_wavin_gaestebadevaerelse).state.c_str());}
- if (id(temp_wavin_gaestebadevaerelse).has_state()){
- it.printf(14,2,"T:%s", id(temp_wavin_gaestebadevaerelse).state.c_str());}
- it.print(0,3,"4:");
- if (id(status_wavin_gang_bryggers).has_state()){
- it.printf(2,3,"%s", id(status_wavin_gang_bryggers).state.c_str());}
- if (id(target_wavin_gang_bryggers).has_state()) {
- it.printf(7,3,"S:%s", id(target_wavin_gang_bryggers).state.c_str());}
- if (id(temp_wavin_gang_bryggers).has_state()){
- it.printf(14,3,"T:%s", id(temp_wavin_gang_bryggers).state.c_str());}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement