mirror of
https://github.com/esphome/esphome.git
synced 2026-09-24 13:34:07 +00:00
[template] Stop water heater republishing when a temperature is unknown (#19013)
This commit is contained in:
@@ -0,0 +1,16 @@
|
||||
esphome:
|
||||
name: wh-template-unknown-test
|
||||
host:
|
||||
api:
|
||||
logger:
|
||||
|
||||
water_heater:
|
||||
- platform: template
|
||||
id: unknown_boiler
|
||||
name: Unknown Boiler
|
||||
# Both temperatures stay unknown, as they do before an upstream component reports a value.
|
||||
current_temperature: !lambda "return NAN;"
|
||||
target_temperature: !lambda "return NAN;"
|
||||
supported_modes:
|
||||
- "off"
|
||||
- eco
|
||||
Reference in New Issue
Block a user