UNPKG

casa-calida

Version:

Connects your RaZberry to the casa-calida servers. Runs directly on your Raspberry Pi.

23 lines (20 loc) 430 B
'use strict'; /** * @author <a href="mailto:stefan@stefanmayer.me">Stefan Mayer</a> */ module.exports = { isValidKey(key) { return key === 'level'; }, convert(sensor) { if (sensor.value === null) { return null; } return { name: '', value: sensor.value, valueType: sensor.type, deviceType: 'actuator' }; } };