Aha, I see now. You use these as I use my daystart sensors. I don’t need these input_numbers for that. Luckily
I thought you wanted to save the daily usage/production somehow. Since we’ve disable the sensors_today in recorder, it would be possible to do the same to my sensor.grid_energy_total, save it automatically at midnight in a sensors/input/variable, and have recorder record these values once a day, instead of constantly during the day.
Hope this makes sense…
beware, this is a quick and dirty transplant of one of my other variable automations, so i must still check everything… especially the data_template, which seems a bit useless right now.
Added a quick input_number to it, so recorder can save that too …
I have one question. I’m using the plugin from hass for my solarpanel (sma). This gives values wh en the sun is up, and works fine. At night, the sma plugin gives the status: unknown. Because the power wheel gives with the solar NaN W, but also the home power is now NaN W. (see picture). It should be nice that if the solar is not working or unknown is that the power grid is the home power.
I’d like to keep the code as simple as possible. Instead of taking into account every situation that could occur for an individual sensor, there are some requirements in the readme. Otherwise the card becomes too heavy/slow and/or the code too complex. E.g. the value of the sensor always should be parsable as an int of float. The value ‘unknown’ doesn’t comply to that.
Maybe you already know how to fix this with a derived sensor, but then the explanation below can be useful for other people.
You can create a sensor based on your solarpanel sensor that is complying to the requirements:
Then use the sensor.better_sensor as input for the card. I expect that both solar value and home value in the power-wheel-card will be correct when you do this. It’s because the ‘unknown’ value will be replaced by a zero value.
If you don’t want to record both sensors in your database, you can exclude one in your recorder setting.
best would be when the original sensor wouldn’t return ‘unknown’ of course… maybe you should file an issue at the components GitHub. Even at night/dark the sensor should work correctly and show 0, if no energy was produced.
I’m about to release version 0.0.5. I first do the fix which @VDRainer referred to. For a future release I will look into the suggestion of @Mariusthvdb which looks promising.
Hi @eh50. Please have a look in the changelog for the next release where the money view is introduced. This version will be released soon. Currently I’m figuring out if I can make an option for auto toggling through the three different views.
To everyone: if you want to prepare for release 0.0.6 please read about the breaking changes. You can already setup the new sensors and have a more smooth start when it will be released.
Thats just awesome, going to buy my solar panels soon and a power wall. Would be super to have it all intergrated. Will tinker around with the money option.
Also, i’ve changed the url and from the webui in firefox it works again. Though, the IOS app doesnt show the card, still broken. Anyone knows how to clear that cache?
Thanks!
Edit: We also need a way to tackle the High/Low rate of the energy price, perhaps based on time? or based on a sensor, my “Slimme meter” (dsmr 5) has a value of tariff low/normal