Hi Mirko! Thanks for your reply!
Before and after I uncommented the line 51 and restartet MM.
Still with the old Token
pi@MagicMirror:~ $ miio --discover --sync
INFO Discovering devices. Press Ctrl+C to stop.
Device ID: 52238776
Model info: Unknown
Address: 192.168.2.107
Token: 6eea5ac1eb475bfedbfff98aab7c2bc7 via stored token
Support: Unknown
(node:25652) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 1): Error: Call to device timed out
But right now after uncommenting the line the error log is different. In the log i can already see the Temperature and humidity (_properties: { temperature: 19.51, humidity: 62.44 },)!! The next step!
> magicmirror@2.1.3 start /home/pi/MagicMirror
> sh run-start.sh
Starting MagicMirror: v2.1.3
Loading config ...
Loading module helpers ...
No helper found for module: alert.
No helper found for module: clock.
Initializing new module helper ...
Module helper loaded: calendar
No helper found for module: currentweather.
No helper found for module: weatherforecast.
Initializing new module helper ...
Module helper loaded: MMM-DWD-WarnWeather
Initializing new module helper ...
Module helper loaded: MMM-PNews
Initializing new module helper ...
Module helper loaded: newsfeed
Initializing new module helper ...
Module helper loaded: MMM-Remote-Control
No helper found for module: MMM-Remote-Control-Repository.
Initializing new module helper ...
Module helper loaded: internet-monitor
Initializing new module helper ...
Module helper loaded: MMM-MovieListings
Initializing new module helper ...
Module helper loaded: MMM-Fuel
Initializing new module helper ...
Module helper loaded: MMM-NetworkScanner
Initializing new module helper ...
Module helper loaded: MMM-nasaastropic
Initializing new module helper ...
Module helper loaded: MMM-SystemStats
Initializing new module helper ...
Module helper loaded: MMM-Departures
No helper found for module: MMM-Carousel.
Initializing new module helper ...
Module helper loaded: MMM-Events
Initializing new module helper ...
Module helper loaded: MMM-xiaomi
All module helpers loaded.
Starting server on port 8080 ...
You're using a full whitelist configuration to allow for all IPs
Server started ...
Connecting socket for: calendar
Starting node helper for: calendar
Connecting socket for: MMM-DWD-WarnWeather
MMM-DWD-WarnWeather helper started...
Connecting socket for: MMM-PNews
Starting module: MMM-PNews
Connecting socket for: newsfeed
Starting module: newsfeed
Connecting socket for: MMM-Remote-Control
Starting node helper for: MMM-Remote-Control
Connecting socket for: internet-monitor
internet-monitor helper started ...
Connecting socket for: MMM-MovieListings
MMM-MovieListing helper started...
Connecting socket for: MMM-Fuel
Starting module helper: MMM-Fuel
Connecting socket for: MMM-NetworkScanner
Starting module: MMM-NetworkScanner
Connecting socket for: MMM-nasaastropic
Starting node helper: MMM-nasaastropic
Connecting socket for: MMM-SystemStats
Connecting socket for: MMM-Departures
Connecting socket for: MMM-Events
Starting node_helper for: MMM-Events
Connecting socket for: MMM-xiaomi
Starting xiaomi helper
Sockets connected & modules started ...
Launching application.
Create new calendar fetcher for url: https://calendar.google.com/calendar/ical/htc.one.m2304%40gmail.com/private-;-)/basic.ics - Interval: 300000
Create new news fetcher for url: http://www.haz.de/rss/feed/haz_schlagzeilen - Interval: 300000
Create new news fetcher for url: http://www.spiegel.de/schlagzeilen/index.rss - Interval: 300000
starting internet monitor node helper
MMM-NetworkScanner received CONFIG
astro helper: config received
retrieveAndUpdate()
Triggering Xiaomi Gateway upate
MMM-Departures error: Error: getaddrinfo ENOTFOUND transportrest-sbiermann.rhcloud.com transportrest-sbiermann.rhcloud.com:80
NASA Astro Pic of the Day URL: https://apod.nasa.gov/apod/image/1711/m5_hubblesmessier1024c.jpg
Magnet {
domain: null,
_events: {},
_eventsCount: 0,
_maxListeners: undefined,
model: 'lumi.magnet',
id: '158d000119fcb2',
type: 'magnet',
capabilities: [],
_properties: {},
_propertiesToMonitor: [],
_propertyDefinitions: {},
_parent:
Gateway {
domain: null,
_events: {},
_eventsCount: 0,
_maxListeners: undefined,
id: undefined,
type: 'gateway',
model: 'lumi.gateway.v3',
capabilities: [ 'color:rgb', 'brightness', 'sensor', 'illuminance' ],
address: '192.168.2.107',
port: 54321,
writeOnly: false,
packet:
Packet {
header: ,
_serverStampTime: 1509842296639,
_token: ,
_tokenKey: ,
_tokenIV: ,
data: ,
_serverStamp: 48587 },
socket:
Socket {
domain: null,
_events: [Object],
_eventsCount: 1,
_maxListeners: undefined,
_handle: [Object],
_receiving: true,
_bindState: 2,
type: 'udp4',
fd: -42,
_reuseAddr: undefined,
_queue: undefined },
_id: 4,
_promises: {},
_hasFailedToken: false,
_properties: { illuminance: 307, rgb: [Object], brightness: 0 },
_propertiesToMonitor: [ 'illumination', 'rgb' ],
_propertyDefinitions: { illumination: [Object], rgb: [Object] },
_reversePropertyDefinitions: { illuminance: 'illumination' },
_loadProperties: [Function: bound _loadProperties],
management: DeviceManagement { device: [Circular] },
debug:
{ [Function: debug]
namespace: 'miio.device.[192.168.2.107]',
enabled: false,
useColors: false,
color: 1,
inspectOpts: {} },
_devices:
{ '158d000119fcb2': [Object],
'158d00013e28ee': [Object],
'158d00015aa973': [Object],
'158d00015736a8': [Object] },
_monitorInterval: 60000,
_propertyMonitor:
Timeout {
_called: false,
_idleTimeout: 60000,
_idlePrev: [Object],
_idleNext: [Object],
_idleStart: 69767,
_onTimeout: [Function: bound _loadProperties],
_timerArgs: undefined,
_repeat: 60000 },
_lastToken: 1509842294044,
_developerKey: 'xqbs1fvtsq6x4oby',
devApi:
DeveloperApi {
domain: null,
_events: [Object],
_eventsCount: 2,
_maxListeners: undefined,
address: '192.168.2.107',
debug: [Object],
socket: [Object],
devices: [],
ready: false },
setRGB: [Function],
setBrightness: [Function],
_deviceListTimer:
Timeout {
_called: false,
_idleTimeout: 1800000,
_idlePrev: [Object],
_idleNext: [Object],
_idleStart: 72417,
_onTimeout: [Function: bound _updateDeviceList],
_timerArgs: undefined,
_repeat: 1800000 } },
management: SubDeviceManagement { _device: [Circular] },
debug:
{ [Function: debug]
namespace: 'miio.device.[192.168.2.107].158d000119fcb2',
enabled: false,
useColors: false,
color: 1,
inspectOpts: {} } }
Switch {
domain: null,
_events: {},
_eventsCount: 0,
_maxListeners: undefined,
model: 'lumi.switch',
id: '158d00015aa973',
type: 'controller',
capabilities: [],
_properties: {},
_propertiesToMonitor: [],
_propertyDefinitions: {},
_parent:
Gateway {
domain: null,
_events: {},
_eventsCount: 0,
_maxListeners: undefined,
id: undefined,
type: 'gateway',
model: 'lumi.gateway.v3',
capabilities: [ 'color:rgb', 'brightness', 'sensor', 'illuminance' ],
address: '192.168.2.107',
port: 54321,
writeOnly: false,
packet:
Packet {
header: ,
_serverStampTime: 1509842296639,
_token: ,
_tokenKey: ,
_tokenIV: ,
data: ,
_serverStamp: 48587 },
socket:
Socket {
domain: null,
_events: [Object],
_eventsCount: 1,
_maxListeners: undefined,
_handle: [Object],
_receiving: true,
_bindState: 2,
type: 'udp4',
fd: -42,
_reuseAddr: undefined,
_queue: undefined },
_id: 4,
_promises: {},
_hasFailedToken: false,
_properties: { illuminance: 307, rgb: [Object], brightness: 0 },
_propertiesToMonitor: [ 'illumination', 'rgb' ],
_propertyDefinitions: { illumination: [Object], rgb: [Object] },
_reversePropertyDefinitions: { illuminance: 'illumination' },
_loadProperties: [Function: bound _loadProperties],
management: DeviceManagement { device: [Circular] },
debug:
{ [Function: debug]
namespace: 'miio.device.[192.168.2.107]',
enabled: false,
useColors: false,
color: 1,
inspectOpts: {} },
_devices:
{ '158d000119fcb2': [Object],
'158d00013e28ee': [Object],
'158d00015aa973': [Object],
'158d00015736a8': [Object] },
_monitorInterval: 60000,
_propertyMonitor:
Timeout {
_called: false,
_idleTimeout: 60000,
_idlePrev: [Object],
_idleNext: [Object],
_idleStart: 69767,
_onTimeout: [Function: bound _loadProperties],
_timerArgs: undefined,
_repeat: 60000 },
_lastToken: 1509842294044,
_developerKey: 'xqbs1fvtsq6x4oby',
devApi:
DeveloperApi {
domain: null,
_events: [Object],
_eventsCount: 2,
_maxListeners: undefined,
address: '192.168.2.107',
debug: [Object],
socket: [Object],
devices: [],
ready: false },
setRGB: [Function],
setBrightness: [Function],
_deviceListTimer:
Timeout {
_called: false,
_idleTimeout: 1800000,
_idlePrev: [Object],
_idleNext: [Object],
_idleStart: 72417,
_onTimeout: [Function: bound _updateDeviceList],
_timerArgs: undefined,
_repeat: 1800000 } },
management: SubDeviceManagement { _device: [Circular] },
debug:
{ [Function: debug]
namespace: 'miio.device.[192.168.2.107].158d00015aa973',
enabled: false,
useColors: false,
color: 3,
inspectOpts: {} } }
SensorHT {
domain: null,
_events: {},
_eventsCount: 0,
_maxListeners: undefined,
model: 'lumi.sensor_ht',
id: '158d00015736a8',
type: 'sensor',
capabilities: [ 'sensor', 'temperature', 'humidity' ],
_properties: { temperature: 19.51, humidity: 62.44 },
_propertiesToMonitor: [ 'temperature', 'humidity' ],
_propertyDefinitions:
{ temperature: { mapper: [Function] },
humidity: { mapper: [Function] } },
_parent:
Gateway {
domain: null,
_events: {},
_eventsCount: 0,
_maxListeners: undefined,
id: undefined,
type: 'gateway',
model: 'lumi.gateway.v3',
capabilities: [ 'color:rgb', 'brightness', 'sensor', 'illuminance' ],
address: '192.168.2.107',
port: 54321,
writeOnly: false,
packet:
Packet {
header: ,
_serverStampTime: 1509842296639,
_token: ,
_tokenKey: ,
_tokenIV: ,
data: ,
_serverStamp: 48587 },
socket:
Socket {
domain: null,
_events: [Object],
_eventsCount: 1,
_maxListeners: undefined,
_handle: [Object],
_receiving: true,
_bindState: 2,
type: 'udp4',
fd: -42,
_reuseAddr: undefined,
_queue: undefined },
_id: 4,
_promises: {},
_hasFailedToken: false,
_properties: { illuminance: 307, rgb: [Object], brightness: 0 },
_propertiesToMonitor: [ 'illumination', 'rgb' ],
_propertyDefinitions: { illumination: [Object], rgb: [Object] },
_reversePropertyDefinitions: { illuminance: 'illumination' },
_loadProperties: [Function: bound _loadProperties],
management: DeviceManagement { device: [Circular] },
debug:
{ [Function: debug]
namespace: 'miio.device.[192.168.2.107]',
enabled: false,
useColors: false,
color: 1,
inspectOpts: {} },
_devices:
{ '158d000119fcb2': [Object],
'158d00013e28ee': [Object],
'158d00015aa973': [Object],
'158d00015736a8': [Object] },
_monitorInterval: 60000,
_propertyMonitor:
Timeout {
_called: false,
_idleTimeout: 60000,
_idlePrev: [Object],
_idleNext: [Object],
_idleStart: 69767,
_onTimeout: [Function: bound _loadProperties],
_timerArgs: undefined,
_repeat: 60000 },
_lastToken: 1509842294044,
_developerKey: 'xqbs1fvtsq6x4oby',
devApi:
DeveloperApi {
domain: null,
_events: [Object],
_eventsCount: 2,
_maxListeners: undefined,
address: '192.168.2.107',
debug: [Object],
socket: [Object],
devices: [],
ready: false },
setRGB: [Function],
setBrightness: [Function],
_deviceListTimer:
Timeout {
_called: false,
_idleTimeout: 1800000,
_idlePrev: [Object],
_idleNext: [Object],
_idleStart: 72417,
_onTimeout: [Function: bound _updateDeviceList],
_timerArgs: undefined,
_repeat: 1800000 } },
management: SubDeviceManagement { _device: [Circular] },
debug:
{ [Function: debug]
namespace: 'miio.device.[192.168.2.107].158d00015736a8',
enabled: false,
useColors: false,
color: 6,
inspectOpts: {} } }