enocean2传感器
将数据从enocean设备发送到
您需要安装 :
npm install raimohanska/sensor-client
然后像这样的事情会起作用
ES = require ( " enocean2sensor " )
sensors = {
" 02:55:65:a3 " : ( telegram , client ) -> console . log " custom handler " , telegram . toString ()
" 21:81:55:a3 " : ES . temperature ( " inside " , 0 , 40 )
}
lights = {
" aa:8e:12:82 " : ES . dimmableLight ( " livingroom " , " reading lamp " )
" f0:3e