Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- cv.Optional(CONF_BATTERY_LEVEL): sensor.sensor_schema(
- unit_of_measurement=UNIT_PERCENT,
- accuracy_decimals=0,
- device_class=DEVICE_CLASS_BATTERY,
- state_class=STATE_CLASS_MEASUREMENT,
- entity_category=ENTITY_CATEGORY_DIAGNOSTIC,
- ),
- cv.Optional(CONF_BATTERY_VOLTAGE): sensor.sensor_schema(
- unit_of_measurement=UNIT_VOLT,
- accuracy_decimals=3,
- device_class=DEVICE_CLASS_VOLTAGE,
- state_class=STATE_CLASS_MEASUREMENT,
- entity_category=ENTITY_CATEGORY_DIAGNOSTIC,
- ),
- cv.Optional(CONF_FLAG_VALUE): sensor.sensor_schema(
- entity_category=ENTITY_CATEGORY_DIAGNOSTIC,
- ),
- cv.Optional(CONF_REED_SWITCH): binary_sensor.BINARY_SENSOR_SCHEMA(
- ),
- }
Add Comment
Please, Sign In to add comment