HomeKit integration to report solar battery levels

Hi,

As per title really, I’m wondering if there is a way I can report the battery level of my solar batteries to HomeKit, so I may ask Siri?

I’ve already got the battery data integrated to HA, but looking at the spec for Homekit integration, I’m unsure how I could create a device that holds the battery level?..

Has anyone any thoughts how this could be achieved?

Thanks

Hi Nick,
It would depend on what you want to do with the data.
If, like me, you want to trigger automations / notifications etc, the visual representation of the data becomes less important, as if you want it to look pleasing to the eye when you look into the Home app…

I have integrated my solar battery as a “humidity sensor” into HomeKit, where the battery level (%) is presented as the level of humidity… you can then run automations based on the humidity level recorded by the sensor.

2 Likes

That sounds great! How did you accomplish this feat!

I just want to be able to ask Siri what the battery level is at

Cheers,

homekit:
  filter:
    include_entities: 
      - light.shelly_shdm_2_f4cfa2ecd433
      - light.shelly_shdm_2_f4cfa2eca51f
      - light.shelly_shdm_2_e8db84d4ca7e
      - switch.shelly_shellyplus1pm_a8032ab9d2e0
      - fan.heat_recovery_system
      - cover.kitchen_door_blinds
      - switch.computer_desk_power
      - switch.washing_machine
#   entity_config:
#     solis2mqtt:
#       name: "Solar Battery"
#       linked_battery_sensor: sensor.battery_soc

I don’t seem to have an ‘overall’ entity for my solar battery integration. The device is solis2mqtt, but I’m not sure how to structure this code to achieve the same as you. Could you share your code?

can you share the code please