Home Assistant | Next Scheduled Feeding Sensor Template #157
Replies: 2 comments 3 replies
|
@DhananjayRamachandran, you should be able to see this in the feeding plan sensors sensor attributes: you can make a template sensor that will return a result from the next "Pending" plan in the attributes, like this: {% set feed_plan = states.sensor.lounge_jet_s_feeder_today_s_feeding_plan.attributes %}
{% for plan, result in feed_plan.items() %}
{% if result is mapping and (result.state | default(result['state']) | string | lower) == 'pending' %}
{{ result.time | default(result['time']) }}
{% break %}
{% endif %}
{% endfor %}this one returns the time for the next feeding plan. {{ result.amount| default(result['amount']) }}to say amount for example instead to return the amount to be fed next. The only thing this won't give you, is that if the next feed is in the next day. In which case this template will be blank, but that is because the schedule is fully completed, so there are no more "pending" feeds in the schedule and therefore in the attributes. |
|
I just had this thought and here it is. Thanks! |


Uh oh!
There was an error while loading. Please reload this page.
Device model name
Granary Feeder
Device model number
PLAF103
Device type
Feeder
Feature name
Next Scheduled Feeding
Describe the feature
It would be extremely helpful to have a sensor entity for next scheduled feeding time and quantity
What problem does this feature solve?
Additional Sensor for Dashboard
Available to help with the feature development
All reactions