-
Notifications
You must be signed in to change notification settings - Fork 123
Open
Description
Description
On other camera devices, the sensors for the SD card are all numeric with unit_of_measurement: GB.
However for the H200 hub they are textual e.g. literal 221.2 GB.
I have workaround template sensors so it's not urgent but maybe on the backlog? Ta.
- name: Flat 2 Camera Hub SD Card Total Space
unique_id: 44af9134-1777-4bd2-87b5-fffe6edee908
icon: mdi:sd
unit_of_measurement: GB
device_class: data_size
availability: >-
{{ has_value('sensor.flat_2_camera_hub_sd_card_total_space_text') }}
state: >-
{{
float(states('sensor.flat_2_camera_hub_sd_card_total_space_text')[:-2])
}}
I'll add a debug log in a mo.
Reproduction Steps
- Add an H200 to the integration.
- Try to use
sensor.h200_hub_disk_1_total_space.
Expected behavior
Sensor should be number with unit of measurement GB and device class data_size.
If applicable, add error logs.
No response
Device Firmware
1.5.1 Build 20250228 rel.27505
Integration Version
7.0.0
Using stream component
Yes
Does camera work via official integrations?
Yes
Camera has all attributes filled out in developer tools
Yes
HASS Environment
Home Assistant OS on x64
Search for similar issues
Yes
Additional information
No response
Metadata
Metadata
Assignees
Labels
No labels