Skip to content

Commit

Permalink
Expanded Sensors
Browse files Browse the repository at this point in the history
  • Loading branch information
Gabriel Wieskamp committed Sep 12, 2023
1 parent 4102f7e commit f1692ca
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 13 deletions.
32 changes: 20 additions & 12 deletions custom_components/mill/const.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,29 +19,37 @@
Platform.BINARY_SENSOR
]
SENSORS: dict[str, SensorEntityDescription] = {
"Status": SensorEntityDescription(
name="Status",
"mib": SensorEntityDescription(
name="Mass In Bucket",
icon="mdi:list-status",
key="data.attributes.status"),
"Bucket": SensorEntityDescription(
name="Bucket",
key="data.attributes.massInBucket"),
"masbe": SensorEntityDescription(
name="Mass Added Since Bucket Empty",
icon="mdi:pail-plus",
key="data.attributes.massAddedSinceBucketEmpty"),
"bf": SensorEntityDescription(
name="Bucket Fullness",
icon="mdi:delete-variant",
key="data.attributes.bucketFullness"),
"Cycle": SensorEntityDescription(
"cr": SensorEntityDescription(
name="Cycle",
icon="mdi:dots-horizontal-circle",
key="data.attributes.dgoCycle.reported")
}
BINARY_SENSORS = {
"Locked": BinarySensorEntityDescription(
name="Locked",
"ll": BinarySensorEntityDescription(
name="Lid Locked",
icon="mdi:lock",
key="data.attributes.isLocked"),
"Bucket Missing": BinarySensorEntityDescription(
key="data.attributes.lidLockState"),
"lo": BinarySensorEntityDescription(
name="Lid Open",
icon="mdi:delete-empty",
key="data.attributes.lidOpenState"),
"bm": BinarySensorEntityDescription(
name="Bucket Missing",
icon="mdi:delete-variant",
icon="mdi:pail-off",
key="data.attributes.bucketMissing"),
"Child Lock": BinarySensorEntityDescription(
"cl": BinarySensorEntityDescription(
name="Child Lock",
icon="mdi:lock",
key="data.attributes.childLockEnabled.reported")
Expand Down
2 changes: 1 addition & 1 deletion custom_components/mill/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
"issue_tracker": "https://github.com/theOrakle/mill/issues",
"loggers": ["custom_components.mill"],
"requirements": ["pydash"],
"version": "0.0.3",
"version": "0.0.4",
"dependencies": [],
"codeowners": ["@theOrakle"]
}

0 comments on commit f1692ca

Please sign in to comment.