updated config
This commit is contained in:
@@ -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