ha-smartmetertexas icon indicating copy to clipboard operation
ha-smartmetertexas copied to clipboard

Use Cron+ and Home Assistant nodes

Open shbatm opened this issue 3 years ago • 3 comments

Thanks for pulling this together! I finally gave up on the native Home Assistant integration and implemented this.

I made a few tweaks to simplify so I wanted to share it back in case you wanted to include:

  1. Use Cron+ nodes to simplify the timing logic to 1 node instead of 3.
  2. Use Home Assistant Websocket (and HACS Add-on) to add a native Home Assistant sensor with extra attributes and device class instead of going through MQTT.

No worries if you don't want to use it, just thought I'd share.

shbatm avatar Aug 09 '21 12:08 shbatm

Thanks for the contribution! I'm glad you are finding this project useful. I'm always for simplified code so this is great.

I'll load up the changes and give it a try.

stmrocket avatar Aug 10 '21 02:08 stmrocket

I now have the updated version running on my production system with no issues. I'll be moving most of my other projects to Cron+ and Home Assistant nodes as well after seeing how this all works.

@shbatm as we are no longer using MQTT, would you mind removing the references to it in the updated readme so it full reflects the new setup? Otherwise, I believe this is ready to merge.

stmrocket avatar Aug 13 '21 18:08 stmrocket

@stmrocket Glad you liked it. Sorry I got distracted this past month, updated the README as requested.

shbatm avatar Sep 09 '21 20:09 shbatm

These features have been added in #15

stmrocket avatar May 03 '24 17:05 stmrocket