updated config
This commit is contained in:
@@ -8,15 +8,15 @@ logger:
|
||||
|
||||
# Enable Home Assistant API
|
||||
api:
|
||||
password: "feelhome123"
|
||||
password: !secret api_secret
|
||||
|
||||
ota:
|
||||
password: "feelhome123"
|
||||
password: !secret ota_key
|
||||
|
||||
wifi:
|
||||
ssid: "lauIOT"
|
||||
password: "superiot1"
|
||||
domain: .home.cabestan.be
|
||||
ssid: !secret wireless_ssid
|
||||
password: !secret wireless_key
|
||||
domain: !secret wireless_domain
|
||||
|
||||
# Enable fallback hotspot (captive portal) in case wifi connection fails
|
||||
ap:
|
||||
@@ -39,18 +39,18 @@ time:
|
||||
id: esptime
|
||||
timezone: "Europe/Brussels"
|
||||
on_time:
|
||||
- seconds: /1
|
||||
- seconds: /2
|
||||
then:
|
||||
- display.page.show_next: saloon_display
|
||||
|
||||
font:
|
||||
- file: "Roboto-Black.ttf"
|
||||
- file: "fonts/Roboto/Roboto-Black.ttf"
|
||||
id: my_font_16
|
||||
size: 16
|
||||
- file: "Roboto-Black.ttf"
|
||||
- file: "fonts/Roboto/Roboto-Black.ttf"
|
||||
id: my_font_14
|
||||
size: 14
|
||||
- file: "materialdesignicons-webfont.ttf"
|
||||
- file: "fonts/materialdesignicons-webfont.ttf"
|
||||
id: icons_14
|
||||
size: 14
|
||||
glyphs:
|
||||
@@ -125,6 +125,7 @@ display:
|
||||
- platform: ssd1306_i2c
|
||||
model: "SSD1306 128x64"
|
||||
reset_pin: D0
|
||||
update_interval: 2s
|
||||
address: 0x3C
|
||||
id: saloon_display
|
||||
rotation: 90
|
||||
|
||||
@@ -25,9 +25,12 @@ web_server:
|
||||
port: 80
|
||||
|
||||
mqtt:
|
||||
broker: hass20.home.cabestan.be
|
||||
username: espsalon
|
||||
password: sala45224
|
||||
# broker: hass20.home.cabestan.be
|
||||
broker: domotic.home.cabestan.be
|
||||
# username: espsalon
|
||||
username: espwater
|
||||
# password: sala45224
|
||||
password: r5h4r65h4
|
||||
on_message:
|
||||
topic: espwater/set_total_drop
|
||||
qos: 0
|
||||
@@ -35,7 +38,7 @@ mqtt:
|
||||
lambda: |-
|
||||
// sprintf(id(lcd_line1),"|%s|%u|",x.c_str(),atol(x.c_str()));
|
||||
id(drops_absolute) = atol(x.c_str())*4;
|
||||
sprintf(id(lcd_line1),"Set Total:%u",id(drops_absolute)/4);
|
||||
sprintf(id(lcd_line1),"Set Total:%lu",id(drops_absolute)/4);
|
||||
|
||||
globals:
|
||||
# - id: software_version
|
||||
@@ -61,7 +64,7 @@ globals:
|
||||
- id: lcd_line2
|
||||
type: char[17]
|
||||
restore_value: no
|
||||
initial_value: "{'v','e','r',':',' ','0','.','4','0','\0'}"
|
||||
initial_value: "{'v','e','r',':',' ','0','.','4','1','\0'}"
|
||||
|
||||
time:
|
||||
- platform: sntp
|
||||
@@ -147,6 +150,8 @@ sensor:
|
||||
lambda: |-
|
||||
return id(drops_today)/4;
|
||||
update_interval: 60s
|
||||
state_class: measurement
|
||||
#last_reset: 1970-01-01T00:00:00+00:00
|
||||
|
||||
binary_sensor:
|
||||
- platform: gpio
|
||||
|
||||
Reference in New Issue
Block a user