Olen / homeassistant-plant

Alternative Plant component of home assistant

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Change humidity sensor source after creation.

SirSheik opened this issue · comments

Hello.
First of all congratulations for this excellent complement. It is very useful and I thank you for the time you dedicate to its development.
I would like to know if it is possible to change the origin of the humidity sensor once it has been declared, this is because I have plants that initially had an indoor humidity sensor, but now that the weather is starting to be good, I have taken them outside.
I have tried unsuccessfully to edit the device definition directly in the file :
/root/config/.storage/core.config_entries
Image 406

But despite reboot it does not take correctly the change.
Image 407

Even deleting the entity and re-creating it does not respect the new sensor that I indicate and continues to take the old sensor.
Can you think of a way to change it without having to create a new device?
Thank you very much

commented

Please see the readme. Especially the section about replacing sensors.

Thank you very much. It worked perfectly.
My apologies I did not know about the existence of this service to change the reference sensors. 🤦🏻‍♂️
I close this.
Have a nice day