hi there
just trying to make a nice minigraph card from an entity wich shows my mower blades on time. This entitiy, provided by the integration, is called sensor.dolly_blades_current_on_time
Well, i have posted the original sensor, sensor.dolly_blades_on_time history; and that i made a history statats helper based on that sensor just to have daily readings.
As you can see the helper does not output readings.
Don’t know, what other stuff ca I state, if so, please ask, no problem on tgis side, obviously, that’s why am asking here.
I can recreate here since the helper config can’t be seen, at least I dont know how.
Clicking on the helper only shows the last step I set up when creating it, and I can’t see a yaml or other kind of config file to post here.
What i want is, since sensor.dolly_blades_on_time outputs the total minutes they have been running, and my goal is to set up a mini graph with daily working time, I chose, after reading on the forum, to create a helper to output that data.
You mentioned ‘a helper’ hence my question, pictures donot show the type (unless I am blind).
If you use the GUI (which I honestly never did) then you have to specify a start, posisibly an end or a duration. Below docu provides some examples but you may have already read these?
You would have to select the proper template and type and the proper ‘state’
As mine are in yaml… an example for my well pump being active today (sounds similar)
sensor:
- platform: history_stats
name: Well Pump On Today
entity_id: switch.well_plug
state: "on"
type: time
start: "{{ now().replace(hour=0, minute=0, second=0) }}"
end: "{{ now() }}"
Well after seing your yaml, i could state that mine would be as follows
sensor:
- platform: history_stats
name: Tiempo de trabajo de dolly
entity_id: dont know that
state: "on"
type: time
start: "{{ as_timestamp(today_at("00:00:00")) }}"
end:
I left end blank because i have read that leaving it that way the helper will work infinitely
And rhe start time, after reading too, is as is because I wanted it to start inmediatelly.
I have no clue how this sensor responds to that…the whole tmeplate thing is (sory to say) sometimes a bit fiddly… and I believe you need to add a END or a duration as well.