Skip to content

How to set Last Rest field of entity config from a flow? #1731

Answered by zachowj
evil-dog asked this question in Q&A
Discussion options

You must be logged in to vote

It appears the update config node was never designed to handle the last_reset attribute of the sensor node, and there’s no workaround to manually update this via the API node until the custom component releases a fix.

Additionally, when using a sensor with device_class set to "total increasing," I encounter the following error:

ValueError: Entity sensor.test_sensor (<class 'custom_components.nodered.sensor.NodeRedSensor'>) with state_class total_increasing has set last_reset. Setting last_reset for entities with state_class other than 'total' is not supported. Please update your configuration if state_class is manually configured.

This suggests that "total increasing" might not be the ap…

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by evil-dog
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants