Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

You are assigning a number to the state "denon.0.display.brightness" which expects a string #330

Open
GitHoubi opened this issue Jun 17, 2024 · 0 comments

Comments

@GitHoubi
Copy link

GitHoubi commented Jun 17, 2024

Everything works perfectly ever since. But there seems to be a problem with display.brightness datapoint. Full Warning Message in Log:

"You are assigning a number to the state "denon.0.display.brightness" which expects a string. Please fix your code to use a string or change the state type to number. This warning might become an error in future versions."

To Reproduce

  1. Rule/Blockly which change state of display.brightness to any of the available options (off,dark,dimmed,bright).

Expected behavior
No warning in log

Screenshots & Logfiles
image

image

Versions:

  • Adapter version: 1.15.5
  • JS-Controller version: 6.0.5
  • Node version: v18.20.3
  • Operating system: Debian 12
  • AVR model: Marantz AV8805

Additional context
This error exists like ever since (years). Everything works perfectly fine regarding the script or its functionality, also manually controlling the datapoint is all working fine. it's just the warning in the log. doing what the warning suggests actually does not help fixing the warning.

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

No branches or pull requests

1 participant