Skip to content

Commit

Permalink
Add additional lookup support for Home Assistant
Browse files Browse the repository at this point in the history
  • Loading branch information
magicus committed Oct 30, 2024
1 parent e06848d commit c4cffe9
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion lib/extension/homeassistant.ts
Original file line number Diff line number Diff line change
Expand Up @@ -213,6 +213,7 @@ const NUMERIC_DISCOVERY_LOOKUP: {[s: string]: KeyValue} = {
entity_category: 'diagnostic',
state_class: 'measurement',
},
distance: {device_class: 'distance', state_class: 'measurement'},
duration: {entity_category: 'config', icon: 'mdi:timer'},
eco2: {device_class: 'carbon_dioxide', state_class: 'measurement'},
eco_temperature: {entity_category: 'config', icon: 'mdi:thermometer'},
Expand All @@ -235,17 +236,19 @@ const NUMERIC_DISCOVERY_LOOKUP: {[s: string]: KeyValue} = {
state_class: 'measurement',
},
local_temperature: {device_class: 'temperature', state_class: 'measurement'},
max_range: {entity_category: 'config', icon: 'mdi:signal-distance-variant'},
max_temperature: {entity_category: 'config', icon: 'mdi:thermometer-high'},
max_temperature_limit: {entity_category: 'config', icon: 'mdi:thermometer-high'},
min_temperature_limit: {entity_category: 'config', icon: 'mdi:thermometer-low'},
min_temperature: {entity_category: 'config', icon: 'mdi:thermometer-low'},
minimum_on_level: {entity_category: 'config'},
measurement_poll_interval: {entity_category: 'config', icon: 'mdi:clock-out'},
motion_sensitivity: {entity_category: 'config', icon: 'mdi:motion-sensor'},
noise: {device_class: 'sound_pressure', state_class: 'measurement'},
noise_detect_level: {icon: 'mdi:volume-equal'},
noise_timeout: {icon: 'mdi:timer'},
occupancy_level: {icon: 'mdi:motion-sensor'},
occupancy_sensitivity: {icon: 'mdi:motion-sensor'},
occupancy_sensitivity: {entity_category: 'config', icon: 'mdi:motion-sensor'},
occupancy_timeout: {entity_category: 'config', icon: 'mdi:timer'},
overload_protection: {icon: 'mdi:flash'},
pm10: {device_class: 'pm10', state_class: 'measurement'},
Expand Down

0 comments on commit c4cffe9

Please sign in to comment.