gpbenton / engMQTTClient

MQTT client for Energenie ener314-rt board running on a raspberry Pi
MIT License
21 stars 10 forks source link

HomeAssistantPackage nearly all deprecated and not working #34

Closed bwims closed 1 year ago

bwims commented 1 year ago

Hi,

I guess you aren't using HA with this anymore, but I thought I'd better let you know that all MQTT sensors now have to be under mqtt: in yaml, so the HA Package isn't much use now.

It's driving me mad trying to rework everything. Ah well.

gpbenton commented 1 year ago

Actually I spent (wasted) a morning updating my yaml files over the holidays doing my annual HA update.

I had completely forgotten about the example here, I'll rewrite it in the new style when I get a chance.

Thanks for reminding me.

bwims commented 1 year ago

Oh Wow!

You truly are a hero!

Thank you, thank you!

Signed, HA novice, totally out of his depth!

gpbenton commented 1 year ago

I have copied a trv package using the new format to the wiki page.

Hope it helps.

bwims commented 1 year ago

Many thanks for that!

Did you decide to not bother with the Statistics platform in the end?

I had to go archive.org in the end to find the original functionality which was a whole bunch of stats, each of which now required it's own statistics block! What a disappointment!

I worked out that for the mean, you would need this, after the switch: declaration

  sensor:
    - platform: statistics
      name: bedroom_etrv_stats
      entity_id: sensor.bedroom_temperature
      state_characteristic: mean
      max_age:
        minutes: 25

Out of interest, what did you use it for? I'm guessing it was to smooth out the sensor values over time?

Thanks again!

B.

gpbenton commented 1 year ago

I don't think I ever used it, probably just an experiment to see what it did.