pimatic-mysensors controller plugin
-
hey,
I really like your plugin now that I finally managed to get everything working. :)
But I would also like to use a BH1750 Light sensor with your plugin. I made a sensorbox with PIR to switch on lights for a minute when movement is detected, but I only want to switch on light when it's dark enough. Is it planned to add support for this? -
This post is deleted!
-
hey,
I really like your plugin now that I finally managed to get everything working. :)
But I would also like to use a BH1750 Light sensor with your plugin. I made a sensorbox with PIR to switch on lights for a minute when movement is detected, but I only want to switch on light when it's dark enough. Is it planned to add support for this? -
I would like to help you make a color picker for rgb leds and a slider for random pwm outputs :D
-edit-deviceClasses = [ MySensorsDHT MySensorsBMP MySensorsPIR MySensorsSwitch MySensorsPulseMeter MySensorsButton MySensorBattery MySensorsDevDimmer ]and
class MySensorsDevDimmer extends env.devices.DimmerActuator constructor: (@config,lastState, @board) -> @id = config.id @name = config.name @_state = lastState?.state?.value env.logger.info "MySensorsDevDimmer" , @id , @name, @_state @board.on('rfValue', (result) => if result.sender is @config.nodeid and result.type is V_LIGHT and result.sensor is @config.sensorid state = (if parseInt(result.value) is 1 then on else off) env.logger.info "<- MySensorDevDimmer " , result @_setState(state) ) super() changeStateTo: (state) -> assert state is on or state is off if state is true then _state = 1 else _state = 0 datas = {} datas = { "destination": @config.nodeid, "sensor": @config.sensorid, "type" : V_LIGHT, "value" : _state, "ack" : 1 } @board._rfWrite(datas).then ( () => @_setState(state) )But i get :
Could not initialize the plugin "mysensors": MySensorsDevDimmer is not definedI know that this won`t actually work because of the :
state = (if parseInt(result.value) is 1 then on else off)and the :
if state is true then _state = 1 else _state = 0What I don't get is why does it throw me that error. (Don't go hard on me, I just learned the basics of coffee script only for this)
-
I would like to help you make a color picker for rgb leds and a slider for random pwm outputs :D
-edit-deviceClasses = [ MySensorsDHT MySensorsBMP MySensorsPIR MySensorsSwitch MySensorsPulseMeter MySensorsButton MySensorBattery MySensorsDevDimmer ]and
class MySensorsDevDimmer extends env.devices.DimmerActuator constructor: (@config,lastState, @board) -> @id = config.id @name = config.name @_state = lastState?.state?.value env.logger.info "MySensorsDevDimmer" , @id , @name, @_state @board.on('rfValue', (result) => if result.sender is @config.nodeid and result.type is V_LIGHT and result.sensor is @config.sensorid state = (if parseInt(result.value) is 1 then on else off) env.logger.info "<- MySensorDevDimmer " , result @_setState(state) ) super() changeStateTo: (state) -> assert state is on or state is off if state is true then _state = 1 else _state = 0 datas = {} datas = { "destination": @config.nodeid, "sensor": @config.sensorid, "type" : V_LIGHT, "value" : _state, "ack" : 1 } @board._rfWrite(datas).then ( () => @_setState(state) )But i get :
Could not initialize the plugin "mysensors": MySensorsDevDimmer is not definedI know that this won`t actually work because of the :
state = (if parseInt(result.value) is 1 then on else off)and the :
if state is true then _state = 1 else _state = 0What I don't get is why does it throw me that error. (Don't go hard on me, I just learned the basics of coffee script only for this)
@Vladut-Grecu said:
if state is true then _state = 1 else
check the pimatic-daemon.log file and what kind of error exception your are getting . not sure if you have enable the "logLevel": "debug", in config.json for pimatic.
Also, you need to add entry in device-config-schema.coffee schema file.
if nothing works share the log file with me..I'm also new to coffee or nodejs and struggled a lot understanding the coffee script , basically, still in learning phase..
-
Currently mysensors plugin only support static node id. Try configuring static node id in sensor code. Hint.. Gw. Begin (null, node id)
Let me know if it's works
@Dheeraj, I have been looking all day for how to configure static node id , meanwhile I heard of mysensors last night so pardon me if I didn't find the doc that explain it. Can you point me in the right direction?
-
I didn't search enough, http://forum.mysensors.org/topic/753/static-node-id-and-other-unanswered-questions
-
@Dheeraj, I have been looking all day for how to configure static node id , meanwhile I heard of mysensors last night so pardon me if I didn't find the doc that explain it. Can you point me in the right direction?
@Sebastien-Vayrette-Gavard said:
I didn't find the doc that explain it. Can you point me in the right di
follow the below instructionfor pimatic installation:
http://www.pimatic.org/guide/getting-started/installation/plugin instruction:
https://github.com/DheerajKhajuria/pimatic-mysensors -
Hello, I am new with controler. I already have some temperature sensors and other controls, but until now I did not use any controller,
I am not familiar with linux, and I need help with instalation of controler on raspbery 2.
I am done with OS instalation, I am using image NOOBS.
I try to install Pimatic acording this procedure, http://pimatic.org/guide/getting-started/installation/
And now I am not sure what next.
Please can anybody help me?
Thanks -
Hello, I am new with controler. I already have some temperature sensors and other controls, but until now I did not use any controller,
I am not familiar with linux, and I need help with instalation of controler on raspbery 2.
I am done with OS instalation, I am using image NOOBS.
I try to install Pimatic acording this procedure, http://pimatic.org/guide/getting-started/installation/
And now I am not sure what next.
Please can anybody help me?
Thanks -
Thanks, I have a pimatic runing now. I would like connect NRF24 directly to the RPI is this possible? How can I setup mysensors plugin for this?
Thanks
-
Hello @Dheeraj
Any info about how to setup a pulsecount sensor? -
@Dheeraj is the light sensor supported? I am getting
20:32:05.069 [pimatic] warn: no plugin found for device "Light1" of class "MySensorLight"!when starting pimatic with
{ "id": "Light1", "name": "Lighti1", "class": "MySensorLight", "nodeid": 11, "sensorid": 0 }yet I am able to see the sensor in pimatic's logs
<- I_LOG_MESSAGE 0;0;3;0;9;read: 11-11-0 s=0,c=1,t=23,pt=2,l=2:39 -
@Dheeraj is the light sensor supported? I am getting
20:32:05.069 [pimatic] warn: no plugin found for device "Light1" of class "MySensorLight"!when starting pimatic with
{ "id": "Light1", "name": "Lighti1", "class": "MySensorLight", "nodeid": 11, "sensorid": 0 }yet I am able to see the sensor in pimatic's logs
<- I_LOG_MESSAGE 0;0;3;0;9;read: 11-11-0 s=0,c=1,t=23,pt=2,l=2:39@Sebastien-Vayrette-Gavard said:
yet I am able
kindly change the "class" name as "MySensorsLight" . please note it has a 's' in between.
-
Hello @Dheeraj
Any info about how to setup a pulsecount sensor?frankly, i couldn't check pulsecount using actual power meter. although i can simulate it :) . It's custom made according to my need. I can modify it as per http://www.mysensors.org/build/pulse_power build easily.
currently it only supports "V_WATT" message.
-
Good morning @Dheeraj
Do you have any example for how you are configuring it? I have made a node with the "original" sketch and configured it with sensor array [0,1,2] in pimatic. I see the device, with parameters w/kw/kWh but no info comes in. Are you using a custom sketch then or how is your setup working?
I think one of the nicest things about pimatic is the graphing functionality. I want to log and and check how the heating is distributed throughout my house and at which consumption depending on heatpump / woodstove settings