Skip to content

Fix daylight sensor configuration#6240

Merged
manup merged 1 commit intodresden-elektronik:masterfrom
manup:fix_daylight
Aug 3, 2022
Merged

Fix daylight sensor configuration#6240
manup merged 1 commit intodresden-elektronik:masterfrom
manup:fix_daylight

Conversation

@manup
Copy link
Member

@manup manup commented Aug 2, 2022

Fix creating the lat/long items on first deCONZ start.
Prior this was at least fixed by database code in next deCONZ start.

Fix in case the discovery server isn't used or provides invalid coordinates the config/configured was never set to true, when the coordinates where set via REST-API.

Fix REST-API PUT sensor/<id>/config to check for valid lat/long values (coordinate as string) and provide proper error message.

Refactored the code to check and update daylight sensor attr/uniqueid and config/configured items.

Fix creating the lat/long items on first deCONZ start.
Prior this was at least fixed by database code in next deCONZ start.

Fix in case the discovery server isn't used or provides invalid coordinates the `config/configured` was never set to true, when the coordinates where set via REST-API.

Fix REST-API PUT sensor/config check for valid data (coordinate as string) for lat/long and provide proper error message.

Refactored the code to check and update daylight sensor uniqueid, configured items.
@manup manup added this to the v2.18.0-beta milestone Aug 2, 2022
@manup manup merged commit 8b8cd28 into dresden-elektronik:master Aug 3, 2022
@manup manup deleted the fix_daylight branch January 3, 2023 13:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant