add icon for oil tank level
This commit is contained in:
parent
95e6d408b3
commit
a7759a7c07
@ -46,6 +46,7 @@ namespace OilTank {
|
|||||||
.addSecondary(
|
.addSecondary(
|
||||||
Builder<Sensor>::instance(new Sensor{ "Level", id })
|
Builder<Sensor>::instance(new Sensor{ "Level", id })
|
||||||
.withUnitMeasure("%")
|
.withUnitMeasure("%")
|
||||||
|
.withIcon("mdi:hydraulic-oil-level")
|
||||||
.withValueTemplate("{{ 100 - ((value_json.sensor.value-12)|float*100/120)|round(2) }}")
|
.withValueTemplate("{{ 100 - ((value_json.sensor.value-12)|float*100/120)|round(2) }}")
|
||||||
.build()
|
.build()
|
||||||
)
|
)
|
||||||
|
|||||||
@ -33,7 +33,7 @@ framework = arduino
|
|||||||
lib_deps =
|
lib_deps =
|
||||||
${env.lib_deps}
|
${env.lib_deps}
|
||||||
arkhipenko/TaskScheduler@^3.8.5
|
arkhipenko/TaskScheduler@^3.8.5
|
||||||
https://git.hodos.ro/libraries/ha-mqtt.git@^1.3.0
|
https://git.hodos.ro/libraries/ha-mqtt.git@^1.6.0
|
||||||
https://git.hodos.ro/libraries/wifi.git@^2.0.0
|
https://git.hodos.ro/libraries/wifi.git@^2.0.0
|
||||||
upload_port = 192.168.6.161
|
upload_port = 192.168.6.161
|
||||||
upload_protocol = espota
|
upload_protocol = espota
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user