Skip to content

Fix invalid ConfiguredName for sunrise and sunset - #328

Open
jmnovak50 wants to merge 1 commit into
naofireblade:masterfrom
jmnovak50:fix-configured-name-validation
Open

Fix invalid ConfiguredName for sunrise and sunset#328
jmnovak50 wants to merge 1 commit into
naofireblade:masterfrom
jmnovak50:fix-configured-name-validation

Conversation

@jmnovak50

Copy link
Copy Markdown

HAP-NodeJS validates the ConfiguredName characteristic and warns when it contains unsupported punctuation.

The sunrise and sunset services currently set dynamic ConfiguredName values such as:

  • Sunriseː 05:14:40
  • Sunsetː 20:28:18

This results in repeated HAP-NodeJS warnings because the names contain the modifier colon character and time punctuation.

This change assigns stable and valid ConfiguredName values:

  • Sunrise
  • Sunset

The existing dynamic Name values remain unchanged, so the current sunrise and sunset times continue to be displayed.

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