#Integral Sensor

1 messages · Page 1 of 1 (latest)

slate rose
#

I have set up an integral Helper and it's working fine, but I can't seem to find an equivalent YAML. I would like to be able to copy-paste my config so I don't have to repeatedly duplicate it via the helper UI workflow

Based on the Integral docs I added this to configuration.yaml:
``sensor:

  • platform: integration
    source: sensor.live_power_out
    unique_id: energy_int_out
    name: Energy Integral Output
    round: 2
    unit_prefix: k``

That block parses without error, but I can't find an entity or state or statistic related to the sensor - it doesn't seem to do anything

What am I missing? Is there a better or more modern way to define an integral sensor in YAML?

Home Assistant

Instructions on how to integrate Integration Sensor into Home Assistant.

weary bay
#

might need some data input to get it to show up

slate rose
#

I can see updates to the source ticking in and the Helper version of the same integral has valid values

#

This is the releated Helper config that is working:
{"created_at":"2025-09-27T19:24:56.595720+00:00","data":{},"disabled_by":null,"discovery_keys":{},"domain":"integration","entry_id":"01K66A5CCK7WCDQTH5BS0H6CV1","minor_version":2,"modified_at":"2025-09-27T20:50:14.716247+00:00","options":{"max_sub_interval":{"hours":0,"minutes":5,"seconds":0},"method":"trapezoidal","name":"nrg_sum_out","round":2.0,"source":"sensor.live_power_out","unit_prefix":"k","unit_time":"h"},"pref_disable_new_entities":false,"pref_disable_polling":false,"source":"user","subentries":[],"title":"nrg_sum_out","unique_id":null,"version":1},

weary bay
#

you might have to do a full core restart

#

yellow option. My config defined sensors dont show up unless I do that.

slate rose
#

That seems to have worked

I tried a full YAML reload several times, which is sufficient to refresh template sensors but apparently not enough for regular sensors. Having to lose state on everything to add sensors is a little annoying, but I’m glad it works

Thanks a bunch for your help

crisp pilot
#

Hot reload only works if an integration is already loaded.

#

Now that you have one integral sensor, any further ones you add can be hot reloaded.

#

Full restart always needed for adding the first instance of any type of sensor.

slate rose
#

Okay. That makes sense. Thanks for explaining

crisp pilot
#

Actually looking at the code I'm not sure if integration has a reload service 🤔

#

That's generally the rule, but some integrations don't support reload. Maybe integral is one of them.

weary bay
crisp pilot
#

Yeah I was wrong. It just doesn't reload.