Plugin for Indigo for Mac
-
@wannabee good stuff! I learn(ed) a lot from it because I am a novice in Python.
And it also made me even better understand what, how and when to communicate between controller, gateway and sensor.I managed to set the id and collect the temperature of a sensor using the beginning of my plugin.
Now I can start building :)
-
Oh, question: After sending the ID to a sensor will the sensor store it 'permanently'?
-
Oh, question: After sending the ID to a sensor will the sensor store it 'permanently'?
-
@wannabee Thanks, will play with this tomorrow. Looks good :)
@marceltrapman Glad it was helpful, Tricky part is to develop something that sends information into the network from outside. ie when you want to turn a switch on or off.
-
Oh, question: After sending the ID to a sensor will the sensor store it 'permanently'?
@marceltrapman and you clear the eeprom by uploading https://github.com/mysensors/Arduino/blob/master/libraries/MySensors/examples/ClearEepromConfig/ClearEepromConfig.ino.
-
Nice @wannabee
Three other questions:
- Am I correct that an Arduino board/node always presents itself and its children upon inclusion (after startup) ?
- I do not see a way to set the child id so assume this is set by the Arduino board/node itself?
- Is there a way to 'manually' ask for all available Arduino boards/nodes and/or sensors available through the gateway?
In other words: "I like this" :)
-
Nice @wannabee
Three other questions:
- Am I correct that an Arduino board/node always presents itself and its children upon inclusion (after startup) ?
- I do not see a way to set the child id so assume this is set by the Arduino board/node itself?
- Is there a way to 'manually' ask for all available Arduino boards/nodes and/or sensors available through the gateway?
In other words: "I like this" :)
@marceltrapman said:
Am I correct that an Arduino board/node always presents itself and its children upon inclusion (after startup) ?
I do not see a way to set the child id so assume this is set by the Arduino board/node itself?
Is there a way to 'manually' ask for all available Arduino boards/nodes and/or sensors available through the gateway?1 For every sensor on a board you send:
gw.sendSensorPresentation(<sensor_child_id>,<sensor_type_id>);2 the sensor_child_id is set by the board.
Ie.
#define CHILD_ID_HUM 0
#define CHILD_ID_TEMP 1And then later:
gw.sendSensorPresentation(CHILD_ID_HUM, S_HUM);
gw.sendSensorPresentation(CHILD_ID_TEMP, S_TEMP);In the HumiditySensor.ino
3 Here @hek have to correct me. The answer is maybe, if you dig deep in the routing table in the gateway. But the gateway will lose that info when rebooted. It would also be possible to send a broadcast to all nodes asking them for info, but in that case you have to implement a function in the nodes that answers on broadcast. It will also make them not sleep. I keep track of available sensors in the python code. It’s the same way the vera is doing it. You basicly stores all sensors that have sent a presentation.
-
Currently, no, The routing table exists in gateway (and is not lost when rebooting). But it only contains information about were to send messages for a certain radioId (realy or direct route). Not what type of sensor(s) that each node has attached. Unfortunately the Arduino is a bit limited on how much data we can store in the EEPROM.
-
@wannabee @hek
Both your answers have helped me a lot! Thanks a million!!!My 'issue' was that I was trying to do all the fancy stuff from the Controller (Indigo, or better my plugin, in this case) but obviously the sensor can be set to be active as well :)
I have made great progress today thanks to you guys...
-
For the fun of it!

-
Thanks, while looking at my screenshots again I also found a little mistake :)
-
Here you see the full power of Indigo.
I added 2 relays to the existing temperature sensor.
In fact a created a custom multi sensor.This is what it looks like in Indigo.
I will make it so that when a device will be updated or added all sensors are included :)

-
I am happy, the plugin is not ready but I moved it to my Indigo Server and it is now in production :)
What am I using it for right now?
The temperature sensor shows the temperature in a computer cabinet.
Based on the temperature a fan is enabled/disabled to lower the temperature.For that I added the board with attached sensors and I created triggers.
Here it is:...

-
Added the source to github: https://github.com/IT2BE/indigo-mysensors
Please beware: the plugin is not ready. I have a few sensors working but I am awaiting my mini pro's to be delivered before I can move ahead.
In the meantime I will polish things as I am also getting ready to go on vacation in about 10 days :) -
Yesterday evening I added a bit to the read me and improved support for the motion sensor.
-
And I updated the readme file so that it should be possible for those that feel like it to start testing it.
This was my favourite piece of work :)