I have been used Home Assistant for over a month now and very happy with the decision to switch over from OH and HB.
Now I have all my automation migrated, would like to monitor them for a period of time to make it production ready. One thing I noticed is EV Smart Charging sometimes fails to schedule charging, and I notice it’s because the sensors it depends on has “Unknown” values.
So here is the thing: I have Tesla integration which only poll data when the car is not asleep. If the car sleeps it keeps the latest value until HA restarts, after which it mark most of sensors “Unknown”.
Now why this is a problem: I have implemented automation to use EV Smart Charging to schedule charging of the car. However EV Smart Charging requires SoC and max. charging limit from Tesla, when those values are “Unknown” it refuses to schedule charging the car.
As you can see I’m in no way expert in HA, and I’m not even sure it’s possible but would like ask the community here for help: is there a way to make those sensors always available by making it to remember the last value before the restart?
Appreciate your help!
Rather than waiting you might be better off creating a template sensor that updates when the integration’s sensor changes to anything other than unknown/unavailable. Then base your automations on that.