mirror of
https://github.com/esphome/esphome.git
synced 2026-08-23 06:36:23 +00:00
[web_server] Add assumed_state to cover JSON detail (#16800)
Co-authored-by: Jesse Hills <3060199+jesserockz@users.noreply.github.com>
This commit is contained in:
co-authored by
Jesse Hills
parent
67e0058e72
commit
91cbcab25e
@@ -4,6 +4,17 @@ wifi:
|
||||
|
||||
binary_sensor:
|
||||
cover:
|
||||
- platform: template
|
||||
name: "Template Cover Assumed"
|
||||
# assumed_state must be reflected in the web_server JSON (detail=all)
|
||||
assumed_state: true
|
||||
lambda: 'return COVER_OPEN;'
|
||||
open_action:
|
||||
- logger.log: open_action
|
||||
close_action:
|
||||
- logger.log: close_action
|
||||
stop_action:
|
||||
- logger.log: stop_action
|
||||
fan:
|
||||
light:
|
||||
sensor:
|
||||
|
||||
Reference in New Issue
Block a user