How to force an entity to update/refresh in Home Assistant with an automation

แชร์
ฝัง
  • เผยแพร่เมื่อ 13 ธ.ค. 2024

ความคิดเห็น • 13

  • @christinefallah9614
    @christinefallah9614 4 หลายเดือนก่อน +1

    Thank you so much. I couldn't live without this!!!

  • @leslawdomagala8117
    @leslawdomagala8117 หลายเดือนก่อน

    Exactly the same problem in solarman app. My today solar production stuck and would not refresh. Problem solved THANK YOU SO MUCH!

  • @Attila_G
    @Attila_G 9 หลายเดือนก่อน +1

    THANK YOU! I spent 5 hours yesterday trying to create a script and kept getting stuck on an entity because it wouldn't update. Now it finally works the way I wanted it to. ❤

  • @CymruDad
    @CymruDad 4 หลายเดือนก่อน +1

    Thank you for this video! I’ve been trying to get the UK Transport integration to work for days. I know some find it unreliable and apparently very few people use it - but I did manage to get it working - but just couldn’t get it to update unless I restarted the HA. I tried adding lines to the Yaml config to get it to refresh (after reading comments on GitHub etc suggesting that), but nothing worked. But it looks like this might do. 🙏

    • @gordonmarkus
      @gordonmarkus  4 หลายเดือนก่อน

      Brilliant - thanks for watching and the comment. Hope this sorts your issue :-)

  • @larryumolo4532
    @larryumolo4532 ปีที่แล้ว

    I have 6 automations to charge my EV from solar depending on the voltage of my inverter battery and they seem to work well, but it is sometimes stuck.
    At a voltage above 55v the charging current is set to 25amps and if the inverter battery voltage falls below 54.2v, there is an automation that is supposed to set the charging current to 6amps and purse the charging, but sometimes even after the voltage has dropped far below 54.2v the charging continues at 25amps.
    Please, how can I apply this your option to solve this problem? Thanks.

    • @gordonmarkus
      @gordonmarkus  ปีที่แล้ว

      Hi, thanks for watching and the comment. I guess there are a couple of things to do. First is you could use an automation like mine to force a refresh of the battery voltage sensor every few minutes (maybe try 15 mins like mine). The other thing to check is look at the traces/logs for your automation that pauses the charging and see why it didn't work. Automation triggers only work when the threshold gets crossed, so if your battery was already below 54.2v before car started charging then it wouldn't hit the trigger. What you could do is set a load of triggers (triggers are logical OR, whereas conditions are logical AND) so that you account for when the voltage is low to begin with, so set multiple values for below 54.1, 54.0, 53.9 etc etc). Hope that helps.

    • @larryumolo4532
      @larryumolo4532 ปีที่แล้ว +1

      @@gordonmarkus I thank you very much for taking time to send such a detailed reply. Although several people gave me several suggestions on a Facebook forum, it was the Time Pattern trigger that you used in your video that has worked for me. I did not know of such a trigger before now.
      I set it for each automation to check every minute and set the current according to the voltage.
      Another person gave me a good clue on the Facebook forum that the Above and Below voltages that I used in my Triggers only triggers "When" and not "if" the voltage meets the condition, so my automations must have been having some misses. I thank you again.

    • @gordonmarkus
      @gordonmarkus  ปีที่แล้ว

      @@larryumolo4532 Brilliant news, glad you got it sorted 🙂

  • @tek8231
    @tek8231 21 วันที่ผ่านมา

    Anyway you can refresh the dashboard with this trick?

    • @gordonmarkus
      @gordonmarkus  20 วันที่ผ่านมา

      Hi, the dashboard should update when there is a change in the value

  • @unionse7en
    @unionse7en 5 หลายเดือนก่อน +1

    skip to: @ 2:57

    • @gordonmarkus
      @gordonmarkus  5 หลายเดือนก่อน

      Some people might want to know why this is necessary, hence the first 2:56 of the video!