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