Add usage sensors for each device sense detects that show powe… (#32206)
* init * const * update docs string * update docs string * restore binary sensors * Restore binary sensors * match name * pylint * Fix bug in conf migration * Fix refactoring error * Address review items Imporve performance * Fix devices never turning back off
This commit is contained in:
parent
3b17e570df
commit
0364cd8db5
4 changed files with 357 additions and 111 deletions
|
@ -5,3 +5,55 @@ ACTIVE_UPDATE_RATE = 60
|
|||
DEFAULT_NAME = "Sense"
|
||||
SENSE_DATA = "sense_data"
|
||||
SENSE_DEVICE_UPDATE = "sense_devices_update"
|
||||
SENSE_DEVICES_DATA = "sense_devices_data"
|
||||
SENSE_DISCOVERED_DEVICES_DATA = "sense_discovered_devices"
|
||||
|
||||
ACTIVE_NAME = "Energy"
|
||||
ACTIVE_TYPE = "active"
|
||||
|
||||
CONSUMPTION_NAME = "Usage"
|
||||
CONSUMPTION_ID = "usage"
|
||||
PRODUCTION_NAME = "Production"
|
||||
PRODUCTION_ID = "production"
|
||||
|
||||
ICON = "mdi:flash"
|
||||
|
||||
MDI_ICONS = {
|
||||
"ac": "air-conditioner",
|
||||
"aquarium": "fish",
|
||||
"car": "car-electric",
|
||||
"computer": "desktop-classic",
|
||||
"cup": "coffee",
|
||||
"dehumidifier": "water-off",
|
||||
"dishes": "dishwasher",
|
||||
"drill": "toolbox",
|
||||
"fan": "fan",
|
||||
"freezer": "fridge-top",
|
||||
"fridge": "fridge-bottom",
|
||||
"game": "gamepad-variant",
|
||||
"garage": "garage",
|
||||
"grill": "stove",
|
||||
"heat": "fire",
|
||||
"heater": "radiatior",
|
||||
"humidifier": "water",
|
||||
"kettle": "kettle",
|
||||
"leafblower": "leaf",
|
||||
"lightbulb": "lightbulb",
|
||||
"media_console": "set-top-box",
|
||||
"modem": "router-wireless",
|
||||
"outlet": "power-socket-us",
|
||||
"papershredder": "shredder",
|
||||
"printer": "printer",
|
||||
"pump": "water-pump",
|
||||
"settings": "settings",
|
||||
"skillet": "pot",
|
||||
"smartcamera": "webcam",
|
||||
"socket": "power-plug",
|
||||
"solar_alt": "solar-power",
|
||||
"sound": "speaker",
|
||||
"stove": "stove",
|
||||
"trash": "trash-can",
|
||||
"tv": "television",
|
||||
"vacuum": "robot-vacuum",
|
||||
"washer": "washing-machine",
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue