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

wrong type #115

Closed
DrBakterius opened this issue Feb 27, 2022 · 4 comments
Closed

wrong type #115

DrBakterius opened this issue Feb 27, 2022 · 4 comments

Comments

@DrBakterius
Copy link

In Version 2.0.7, node: v14.19.0, js-controller: 4.0.15 the following information is output:

Object hs100.0.***_***_***_***.last_update is invalid: Default value has to be type "string" but received type "number"
Object ***_***_***_***.last_update is invalid: Default value has to be type "string" but received type "number"
Object hs100.0.***_***_***_***.ledState is invalid: Default value has to be type "string" but received type "boolean"
Object ***_***_***_***.ledState is invalid: Default value has to be type "string" but received type "boolean"
@arteck
Copy link
Owner

arteck commented Feb 28, 2022

stop the adapter
del all objects
start the adapter

@DrBakterius
Copy link
Author

DrBakterius commented Feb 28, 2022

Thank you, I tried that first. And now again to be on the safe side. Unfortunately, these errors still come up every time I start the adapter.

Here are the object details:

{
  "type": "state",
  "common": {
    "name": "***",
    "type": "string",
    "read": true,
    "write": false,
    "def": -1,
    "role": "value",
    "desc": "last update"
  },
  "native": {},
  "from": "system.adapter.hs100.0",
  "user": "system.user.admin",
  "ts": 1646065431311,
  "_id": "hs100.0.***_***_***_***.last_update",
  "acl": {
    "object": 1636,
    "state": 1636,
    "owner": "system.user.admin",
    "ownerGroup": "system.group.administrator"
  }
}
{
  "type": "state",
  "common": {
    "name": "***",
    "type": "string",
    "read": true,
    "write": false,
    "def": false,
    "role": "switch",
    "desc": "Led on/off"
  },
  "native": {},
  "from": "system.adapter.hs100.0",
  "user": "system.user.admin",
  "ts": 1646065431320,
  "_id": "hs100.0.***_***_***_***.ledState",
  "acl": {
    "object": 1636,
    "state": 1636,
    "owner": "system.user.admin",
    "ownerGroup": "system.group.administrator"
  }
}

@arteck
Copy link
Owner

arteck commented Mar 2, 2022

your states are wrong... plz reinstall the adapter form GIT
then
stop the adapter
del all objects
start the adapter

@DrBakterius
Copy link
Author

With v2.1.2 from GIT it works. Thank you!

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

2 participants