Hi,
I want to connect pimatic with my magic mirror to show the actual temperatures.
I have a module that should work, but I get no connection to my pimatic via websocket-API.
When I try the imple example from the API Site, I get the following answer, so normally it should work. Or see somebody a failure?
Is there some other method to test the connection?
Regards,
Sebastian
pi@raspberrypi:~/MagicMirror/modules/MMM-M1-Pimatic $ node pimatic2.js
connected
[ { id: 'timer',
name: 'Timer',
template: 'timer',
attributes: [ [Object], [Object] ],
actions: [ [Object], [Object], [Object] ],
config:
{ xAttributeOptions: [],
id: 'timer',
name: 'Timer',
class: 'Timer' },
configDefaults: { resolution: 1 } },
{ id: 'sunrise',
name: 'Sunrise',
template: 'device',
attributes: [ [Object], [Object] ],
actions: [],
config:
{ attributes: [Object],
id: 'sunrise',
name: 'Sunrise',
class: 'SunriseDevice',
latitude: 53.466,
longitude: 9.6912 },
configDefaults: { attributes: [Object] } },
{ id: 'lacation',
name: 'Location',
template: 'device',
attributes: [ [Object], [Object], [Object], [Object] ],
actions: [ [Object] ],
config:
{ xAttributeOptions: [],
id: 'lacation',
name: 'Location',
class: 'LocationDevice',
lat: 53.469023,
long: 9.682703 },
configDefaults:
{ lat: 0,
long: 0,
useGoogleMaps: true,
googleMapsApiKey: '0',
iCloudUser: '0',
iCloudPass: '0',
iCloudDevice: '0',
iCloudInterval: 60000 } },
{ id: 'thermbad',
name: 'ThermBad',
template: 'device',
attributes: [ [Object], [Object] ],
actions: [],
config:
{ values: [Object],
protocols: [Object],
xAttributeOptions: [],
id: 'thermbad',
name: 'ThermBad',
class: 'HomeduinoRFWeatherStation' },
configDefaults:
{ values: [Object],
protocols: [],
processingTemp: '$value',
processingHum: '$value',
processingWindGust: '$value',
processingAvgAirspeed: '$value',
processingWindDirection: '$value',
processingRain: '$value' } },
{ id: 'badfeucht',
name: 'BadFeuchtigkeit',
template: 'device',
attributes: [ [Object], [Object], [Object], [Object] ],
actions: [],
config:
{ temperatureRef: '$thermbad.temperature',
humidityRef: '$thermbad.humidity',
xAttributeOptions: [],
id: 'badfeucht',
name: 'BadFeuchtigkeit',
class: 'DewPointDevice' },
configDefaults: { interval: '10000', units: 'metric' } },
{ id: 'system',
name: 'System',
template: 'device',
attributes: [ [Object], [Object] ],
actions: [],
config:
{ attributes: [Object],
xAttributeOptions: [],
id: 'system',
name: 'System',
class: 'SystemSensor' },
configDefaults: { attributes: [Object] } },
{ id: 'globaltronics-gt-wt-01-variant-d',
name: 'Temperatur Wohnzimmer',
template: 'device',
attributes: [ [Object], [Object] ],
actions: [],
config:
{ class: 'HomeduinoRFWeatherStation',
protocols: [Object],
values: [Object],
xAttributeOptions: [],
id: 'globaltronics-gt-wt-01-variant-d',
name: 'Temperatur Wohnzimmer' },
configDefaults:
{ values: [Object],
protocols: [],
processingTemp: '$value',
processingHum: '$value',
processingWindGust: '$value',
processingAvgAirspeed: '$value',
processingWindDirection: '$value',
processingRain: '$value' } },
{ id: 'globaltronics-gt-wt-01-variant-c',
name: 'Temperatur Schlafzimmer',
template: 'device',
attributes: [ [Object], [Object] ],
actions: [],
config:
{ class: 'HomeduinoRFWeatherStation',
protocols: [Object],
values: [Object],
xAttributeOptions: [],
id: 'globaltronics-gt-wt-01-variant-c',
name: 'Temperatur Schlafzimmer' },
configDefaults:
{ values: [Object],
protocols: [],
processingTemp: '$value',
processingHum: '$value',
processingWindGust: '$value',
processingAvgAirspeed: '$value',
processingWindDirection: '$value',
processingRain: '$value' } },
{ id: 'temperatur-bad',
name: 'Temperatur Bad',
template: 'device',
attributes: [ [Object], [Object] ],
actions: [],
config:
{ class: 'HomeduinoRFWeatherStation',
protocols: [Object],
values: [Object],
xAttributeOptions: [],
id: 'temperatur-bad',
name: 'Temperatur Bad' },
configDefaults:
{ values: [Object],
protocols: [],
processingTemp: '$value',
processingHum: '$value',
processingWindGust: '$value',
processingAvgAirspeed: '$value',
processingWindDirection: '$value',
processingRain: '$value' } },
{ id: 'steckdosea',
name: 'SteckdoseA',
template: 'switch',
attributes: [ [Object] ],
actions: [ [Object], [Object], [Object], [Object], [Object] ],
config:
{ class: 'HomeduinoRFSwitch',
protocols: [Object],
id: 'steckdosea',
name: 'SteckdoseA' },
configDefaults: { protocols: [], forceSend: true } },
{ id: 'steckdoseb',
name: 'SteckdoseB',
template: 'switch',
attributes: [ [Object] ],
actions: [ [Object], [Object], [Object], [Object], [Object] ],
config:
{ class: 'HomeduinoRFSwitch',
protocols: [Object],
id: 'steckdoseb',
name: 'SteckdoseB' },
configDefaults: { protocols: [], forceSend: true } },
{ id: 'steckdosec',
name: 'SteckdoseC',
template: 'switch',
attributes: [ [Object] ],
actions: [ [Object], [Object], [Object], [Object], [Object] ],
config:
{ class: 'HomeduinoRFSwitch',
protocols: [Object],
id: 'steckdosec',
name: 'SteckdoseC' },
configDefaults: { protocols: [], forceSend: true } },
{ id: 'steckdosed',
name: 'SteckdoseD',
template: 'switch',
attributes: [ [Object] ],
actions: [ [Object], [Object], [Object], [Object], [Object] ],
config:
{ class: 'HomeduinoRFSwitch',
protocols: [Object],
id: 'steckdosed',
name: 'SteckdoseD' },
configDefaults: { protocols: [], forceSend: true } },
{ id: 'fritzwlan',
name: 'FritzWlan',
template: 'switch',
attributes: [ [Object], [Object], [Object] ],
actions: [ [Object], [Object], [Object], [Object], [Object] ],
config: { id: 'fritzwlan', name: 'FritzWlan', class: 'FritzWlan' },
configDefaults: { interval: 1800 } },
{ id: 'fritzoutlet',
name: 'FritzOutlet',
template: 'switch',
attributes: [ [Object], [Object], [Object] ],
actions: [ [Object], [Object], [Object], [Object], [Object] ],
config:
{ ain: '',
id: 'fritzoutlet',
name: 'FritzOutlet',
class: 'FritzOutlet' },
configDefaults: { interval: 0 } },
{ id: 'logwatcher',
name: 'LogWatcher',
template: 'device',
attributes: [],
actions: [],
config:
{ file: '',
attributes: [],
lines: [],
xAttributeOptions: [],
id: 'logwatcher',
name: 'LogWatcher',
class: 'LogWatcher' },
configDefaults: { lines: '' } } ]
[ { id: 'test',
name: 'Test',
string: 'when its 21:41 then pushsafer message:"Uhrezeit" vibration:"3"',
active: false,
valid: true,
logging: true,
conditionToken: 'its 21:41',
actionsToken: 'pushsafer message:"Uhrezeit" vibration:"3"',
error: null },
{ id: 'test2',
name: 'Test2',
string: 'when pimatic is starting then pushsafer message:"Pimatic startet!"' ,
active: true,
valid: true,
logging: true,
conditionToken: 'pimatic is starting',
actionsToken: 'pushsafer message:"Pimatic startet!"',
error: null },
{ id: 'test3',
name: 'Test3',
string: 'when temperature of badfeucht >= 16 then pushsafer message:"höher16 "',
active: false,
valid: true,
logging: true,
conditionToken: 'temperature of badfeucht >= 16',
actionsToken: 'pushsafer message:"höher16"',
error: null },
{ id: 'lampezimmer3',
name: 'Lampezimmer3',
string: 'when its after $sunrise.sunset then turn steckdosea on and turn ste ckdoseb on and turn steckdosec on and turn steckdosed on and pushsafer message:" Sonnenuntergang Lampen an" vibration:"3"',
active: false,
valid: true,
logging: true,
conditionToken: 'its after $sunrise.sunset',
actionsToken: 'turn steckdosea on and turn steckdoseb on and turn steckdosec on and turn steckdosed on and pushsafer message:"Sonnenuntergang Lampen an" vib ration:"3"',
error: null },
{ id: 'steckdosensonnenuntergangan',
name: 'SteckdosenSonnenuntergangAN',
string: 'when its after $sunrise.sunset then turn steckdosea on and turn ste ckdoseb on and turn steckdosec on and turn steckdosed on and pushsafer message:" Sonnenuntergang Lampen an" vibration:"2"',
active: true,
valid: true,
logging: true,
conditionToken: 'its after $sunrise.sunset',
actionsToken: 'turn steckdosea on and turn steckdoseb on and turn steckdosec on and turn steckdosed on and pushsafer message:"Sonnenuntergang Lampen an" vib ration:"2"',
error: null },
{ id: 'steckdosensonnenuntergangaus',
name: 'SteckdosenSonnenuntergangAUS',
string: 'when its 22:05 then turn steckdosea off and turn steckdoseb off and turn steckdosec off and turn steckdosed off and pushsafer message:"Sonnenunterg ang Lampen aus" vibration:"3"',
active: true,
valid: true,
logging: true,
conditionToken: 'its 22:05',
actionsToken: 'turn steckdosea off and turn steckdoseb off and turn steckdos ec off and turn steckdosed off and pushsafer message:"Sonnenuntergang Lampen aus " vibration:"3"',
error: null } ]
[ { name: 'timer.time',
readonly: true,
type: 'attribute',
value: 2,
unit: 's' },
{ name: 'timer.running',
readonly: true,
type: 'attribute',
value: false,
unit: '' },
{ name: 'sunrise.sunrise',
readonly: true,
type: 'attribute',
value: '06:58:44',
unit: '' },
{ name: 'sunrise.sunset',
readonly: true,
type: 'attribute',
value: '18:09:09',
unit: '' },
{ name: 'lacation.linearDistance',
readonly: true,
type: 'attribute',
unit: 'm' },
{ name: 'lacation.routeDistance',
readonly: true,
type: 'attribute',
unit: 'm' },
{ name: 'lacation.eta',
readonly: true,
type: 'attribute',
unit: 's' },
{ name: 'lacation.address',
readonly: true,
type: 'attribute',
unit: '' },
{ name: 'thermbad.temperature',
readonly: true,
type: 'attribute',
value: 18,
unit: '°C' },
{ name: 'thermbad.humidity',
readonly: true,
type: 'attribute',
value: 83,
unit: '%' },
{ name: 'badfeucht.temperature',
readonly: true,
type: 'attribute',
value: 18,
unit: '°C' },
{ name: 'badfeucht.humidity',
readonly: true,
type: 'attribute',
value: 83,
unit: '%' },
{ name: 'badfeucht.dewPoint',
readonly: true,
type: 'attribute',
value: 15.070479921717705,
unit: '°C' },
{ name: 'badfeucht.absHumidity',
readonly: true,
type: 'attribute',
value: 12.748309170619319,
unit: 'g/m³' },
{ name: 'system.cpu',
readonly: true,
type: 'attribute',
value: 4.66,
unit: '%' },
{ name: 'system.memory',
readonly: true,
type: 'attribute',
value: 379113472,
unit: 'B' },
{ name: 'globaltronics-gt-wt-01-variant-d.temperature',
readonly: true,
type: 'attribute',
value: 19.8,
unit: '°C' },
{ name: 'globaltronics-gt-wt-01-variant-d.humidity',
readonly: true,
type: 'attribute',
value: 57,
unit: '%' },
{ name: 'globaltronics-gt-wt-01-variant-c.temperature',
readonly: true,
type: 'attribute',
value: 17.9,
unit: '°C' },
{ name: 'globaltronics-gt-wt-01-variant-c.humidity',
readonly: true,
type: 'attribute',
value: 70,
unit: '%' },
{ name: 'temperatur-bad.temperature',
readonly: true,
type: 'attribute',
value: 19,
unit: '°C' },
{ name: 'temperatur-bad.humidity',
readonly: true,
type: 'attribute',
value: 81,
unit: '%' },
{ name: 'steckdosea.state',
readonly: true,
type: 'attribute',
value: true,
unit: '' },
{ name: 'steckdoseb.state',
readonly: true,
type: 'attribute',
value: true,
unit: '' },
{ name: 'steckdosec.state',
readonly: true,
type: 'attribute',
value: true,
unit: '' },
{ name: 'steckdosed.state',
readonly: true,
type: 'attribute',
value: true,
unit: '' },
{ name: 'fritzwlan.state',
readonly: true,
type: 'attribute',
value: false,
unit: '' },
{ name: 'fritzwlan.ssid',
readonly: true,
type: 'attribute',
unit: '' },
{ name: 'fritzwlan.psk',
readonly: true,
type: 'attribute',
unit: '' },
{ name: 'fritzoutlet.state',
readonly: true,
type: 'attribute',
value: null,
unit: '' },
{ name: 'fritzoutlet.power',
readonly: true,
type: 'attribute',
value: null,
unit: 'W' },
{ name: 'fritzoutlet.energy',
readonly: true,
type: 'attribute',
value: null,
unit: 'kWh' } ]
[ { id: 'favourite',
name: 'Favourites',
devices: [ [Object], [Object], [Object], [Object], [Object], [Object] ] },
{ id: 'steckdosen',
name: 'Steckdosen',
devices: [ [Object], [Object], [Object], [Object] ] },
{ id: 'test',
name: 'Test',
devices:
[ [Object],
[Object],
[Object],
[Object],
[Object],
[Object],
[Object],
[Object],
[Object],
[Object],
[Object],
[Object] ] } ]
[]
{ deviceId: 'system',
attributeName: 'cpu',
time: 1488821913009,
value: 8.18 }
{ deviceId: 'system',
attributeName: 'memory',
time: 1488821913012,
value: 393248768 }
{ deviceId: 'system',
attributeName: 'cpu',
time: 1488821923024,
value: 5.31 }
{ deviceId: 'system',
attributeName: 'memory',
time: 1488821923027,
value: 393302016 }
{ deviceId: 'globaltronics-gt-wt-01-variant-d',
attributeName: 'temperature',
time: 1488821925639,
value: 19.8 }
{ deviceId: 'globaltronics-gt-wt-01-variant-d',
attributeName: 'humidity',
time: 1488821925641,
value: 57 }
{ deviceId: 'temperatur-bad',
attributeName: 'temperature',
time: 1488821929290,
value: 19 }
{ deviceId: 'temperatur-bad',
attributeName: 'humidity',
time: 1488821929292,
value: 81 }
{ deviceId: 'globaltronics-gt-wt-01-variant-c',
attributeName: 'temperature',
time: 1488821930661,
value: 17.9 }
{ deviceId: 'globaltronics-gt-wt-01-variant-c',
attributeName: 'humidity',
time: 1488821930662,
value: 70 }
{ deviceId: 'system',
attributeName: 'cpu',
time: 1488821933027,
value: 5.45 }
{ deviceId: 'system',
attributeName: 'memory',
time: 1488821933032,
value: 393293824 }
{ deviceId: 'thermbad',
attributeName: 'temperature',
time: 1488821939127,
value: 18 }
{ deviceId: 'thermbad',
attributeName: 'humidity',
time: 1488821939129,
value: 83 }
{ deviceId: 'badfeucht',
attributeName: 'temperature',
time: 1488821939141,
value: 18 }
{ deviceId: 'badfeucht',
attributeName: 'dewPoint',
time: 1488821939143,
value: 15.070479921717705 }
{ deviceId: 'badfeucht',
attributeName: 'absHumidity',
time: 1488821939144,
value: 12.748309170619319 }
{ deviceId: 'badfeucht',
attributeName: 'humidity',
time: 1488821939145,
value: 83 }
{ deviceId: 'badfeucht',
attributeName: 'dewPoint',
time: 1488821939146,
value: 15.070479921717705 }
{ deviceId: 'badfeucht',
attributeName: 'absHumidity',
time: 1488821939147,
value: 12.748309170619319 }
{ deviceId: 'system',
attributeName: 'cpu',
time: 1488821943033,
value: 4.64 }
{ deviceId: 'system',
attributeName: 'memory',
time: 1488821943044,
value: 393519104 }
{ deviceId: 'system',
attributeName: 'cpu',
time: 1488821953036,
value: 4.03 }
{ deviceId: 'system',
attributeName: 'memory',
time: 1488821953047,
value: 393351168 }