smarthomefans / ioBroker.miio

ioBroker adapter to controls xiaomi miIO protocol devices
MIT License
12 stars 6 forks source link

Adapter does not start after js-controller 3.3.6 upgrade #38

Closed Grothesk242 closed 2 years ago

Grothesk242 commented 3 years ago

Describe the bug
Adapter does not start after upgrade to js-controller 3.3.6.

Screenshots & Logfiles

2021-05-02 21:49:41.489  - info: miio.0 (7209) starting. Version 0.0.13 in /opt/iobroker/node_modules/iobroker.miio, node: v14.16.1, js-controller: 3.3.6
2021-05-02 21:49:41.760  - info: miio.0 (7209) 192.168.178.30 added.
2021-05-02 21:49:41.764  - info: miio.0 (7209) All defined devices are created
2021-05-02 21:49:41.764  - info: miio.0 (7209) Start auto discover
2021-05-02 21:49:41.779  - info: miio.0 (7209) new fan device
2021-05-02 21:49:41.797  - info: miio.0 (7209) New device: zhimi.fan.sa1. ID 90211825
2021-05-02 21:49:41.800  - info: miio.0 (7209) Create state object devices.90211825.connected
2021-05-02 21:49:41.801  - info: miio.0 (7209) Create state object devices.90211825.model
2021-05-02 21:49:41.801  - info: miio.0 (7209) Create state object devices.90211825.power
2021-05-02 21:49:41.801  - info: miio.0 (7209) Create state object devices.90211825.childLock
2021-05-02 21:49:41.802  - info: miio.0 (7209) Create state object devices.90211825.buzzer
2021-05-02 21:49:41.802  - info: miio.0 (7209) Create state object devices.90211825.ledBrightnessLevel
2021-05-02 21:49:41.803  - info: miio.0 (7209) Create state object devices.90211825.angle
2021-05-02 21:49:41.803  - info: miio.0 (7209) Create state object devices.90211825.naturalSpeed
2021-05-02 21:49:41.803  - info: miio.0 (7209) Create state object devices.90211825.directSpeed
2021-05-02 21:49:41.804  - info: miio.0 (7209) Create state object devices.90211825.oscillate
2021-05-02 21:49:41.804  - info: miio.0 (7209) Create state object devices.90211825.timedOff
2021-05-02 21:49:41.804  - info: miio.0 (7209) Create state object devices.90211825.motorSpeed
2021-05-02 21:49:41.805  - info: miio.0 (7209) Create state object devices.90211825.ConnectAC
2021-05-02 21:49:41.805  - info: miio.0 (7209) Create state object devices.90211825.UseTime
2021-05-02 21:49:41.839  - info: miio.0 (7209) 78328901 token is hide
2021-05-02 21:49:41.840  - info: miio.0 (7209) 74213525 token is hide
2021-05-02 21:49:41.841  - info: miio.0 (7209) 63722155 token is hide
2021-05-02 21:49:41.841  - info: miio.0 (7209) 92202807 token is hide
2021-05-02 21:49:41.957  - info: miio.0 (7209) 90211825 Already registed.
2021-05-02 21:49:45.206  - error: miio.0 (7209) Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch().
2021-05-02 21:49:45.207  - error: miio.0 (7209) unhandled promise rejection: undefined is not a valid state value
2021-05-02 21:49:45.212  - error: miio.0 (7209) Error: undefined is not a valid state value
    at Object.maybeCallbackWithError (/opt/iobroker/node_modules/iobroker.js-controller/lib/tools.js:2254:17)
    at Miio.setState (/opt/iobroker/node_modules/iobroker.js-controller/lib/adapter.js:6093:30)
    at Miio.miioAdapterUpdateState (/opt/iobroker/node_modules/iobroker.miio/build/main.js:142:18)
    at Controller.<anonymous> (/opt/iobroker/node_modules/iobroker.miio/build/main.js:441:30)
    at Controller.emit (events.js:315:20)
    at DeviceClass.<anonymous> (/opt/iobroker/node_modules/iobroker.miio/build/lib/miio.js:181:22)
    at DeviceClass.emit (events.js:315:20)
    at DeviceClass.attributeUpdate (/opt/iobroker/node_modules/iobroker.miio/build/lib/Devices/device.js:169:14)
    at DeviceClass.propertyUpdated (/opt/iobroker/node_modules/iobroker.miio/build/lib/Devices/device.js:292:22)
    at Object.setProperty (/opt/iobroker/node_modules/miio-lite/lib/device.js:174:9)
2021-05-02 21:49:45.213  - error: miio.0 (7209) undefined is not a valid state value
2021-05-02 21:49:45.217  - info: miio.0 (7209) cleaned everything up...
2021-05-02 21:49:45.219  - info: miio.0 (7209) terminating
2021-05-02 21:49:45.220  - warn: miio.0 (7209) Terminated (UNCAUGHT_EXCEPTION): Without reason
2021-05-02 21:49:45.221  - info: miio.0 (7209) 90211825 becomes unavailable.
2021-05-02 21:49:45.300  - warn: miio.0 (7209) State value to set for "miio.0.devices.90211825.timedOff" has value "0" less than min "1"
2021-05-02 21:49:45.777  - error: host.chet instance system.adapter.miio.0 terminated with code 6 (UNCAUGHT_EXCEPTION)
2021-05-02 21:49:45.779  - info: host.chet Restart adapter system.adapter.miio.0 because enabled

Versions: