Open christoph-buente opened 3 years ago
I use the battery level to change the fan speed, via a Node-Red - no template sensors needed.
First I pull in all the data with a 'State' node:
and feed that in to the Function node:
if (global.get('homeassistant').homeAssistant.states["vacuum.robovac"].attributes.battery_level < 50)
msg.payload =
{
"service": "set_fan_speed",
data:
{"fan_speed": "Standard"}
};
else
msg.payload =
{
"service": "set_fan_speed",
data:
{"fan_speed": "Max"}
};
return msg
Output goes to a 'Call Service' Node:
I hope that helps and/or gives ppl ideas.
I would like to start the robovac based on several criteria for example the battery level. However it is not directly exposed by this integration. I was able to help myself using the template platform. Sharing it here cause others might find this useful.
Is there a way to get those sensors directly exposed by the eufy_vacuum integration?