Quantcast
Channel: Configuration - Home Assistant Community
Viewing all articles
Browse latest Browse all 105971

Trying to get my battery % into homekit

$
0
0

I am trying to get my solar battery level to display in the Home app for my other half.

I have created some template sensors i can get it to show up as humidity but its a hassle to get it to display. I also tried a battery sensor but that adds it if i click on a tile for the deye/sunsynk then settings (it shows battery in there). What’s the best way to get a tile that shows the battery %

#### Template sensor ######
sensor:
  - platform: template
    sensors:
      weather_calc_humidity:
        device_class: humidity
        friendly_name: "Outside Humidity"
        unit_of_measurement: "%"
        value_template: "{{ states('sensor.deye_sunsynk_sol_ark_battery_state_of_charge') }}"
  
  - platform: template
    sensors:
      battery_charge_homekit:
        device_class: battery
        friendly_name: "Battery State of Charge for HomeKit"
        value_template: "{{ states('sensor.deye_sunsynk_sol_ark_battery_state_of_charge') | float }}"
        unit_of_measurement: "%"





    
####### Homekit #######
homekit:
  filter:
    include_domains:
      #- light
      #- sensor
    include_entities:
      - sensor.battery_charge_homekit
      - sensor.weather_calc_humidity

3 posts - 2 participants

Read full topic


Viewing all articles
Browse latest Browse all 105971

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>