We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Liberty_HA/sensors.yaml
Lines 539 to 545 in fb7ab38
template: # https://www.home-assistant.io/integrations/sensor/ - sensor: - name: Hue Motion Sensor Hall Battery Level state_class: measurement device_class: battery unit_of_measurement: "%" state: '{{state_attr("binary_sensor.capteur_couloir_motion", "battery_level")}}' homeassistant: customize: sensor. hue_motion_sensor_hall_battery_level: templates: icon: > if state_attr("binary_sensor.capteur_couloir_motion", "battery_level") <= 5 return 'mdi:battery-outline' if state_attr("binary_sensor.capteur_couloir_motion", "battery_level") >= 95 return 'mdi:battery' return 'mdi:battery-' + state_attr("binary_sensor.capteur_couloir_motion", "battery_level")|float / 10)|round*10}} icon_color: > [...]
(not tested)
Ref: https://www.home-assistant.io/integrations/template/
Template declaration and UI / icons are separated. You can have everything in 1 file if you use packages
packages
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Liberty_HA/sensors.yaml
Lines 539 to 545 in fb7ab38
(not tested)
Ref: https://www.home-assistant.io/integrations/template/
Template declaration and UI / icons are separated. You can have everything in 1 file if you use
packages
The text was updated successfully, but these errors were encountered: