Page 1 of 1

Does MySensors Inclusion Mode work in Domoticz?

Posted: Saturday 16 February 2019 14:46
by Doler
Since stable version 4.9700 Domoticz supports inclusion mode messages (Implemented: MySensors: handling of I_INCLUSION_MODE message.). But it is not clear to me if Domoticz acts upon this message.

I have following setup in my USB serial gateway (MySensors 2.3.1):

Code: Select all

// Enable inclusion mode
#define MY_INCLUSION_MODE_FEATURE
// Enable Inclusion mode button on gateway
#define MY_INCLUSION_BUTTON_FEATURE

// Inverses behavior of inclusion button (if using external pullup)
//#define MY_INCLUSION_BUTTON_EXTERNAL_PULLUP

// Set inclusion mode duration (in seconds)
#define MY_INCLUSION_MODE_DURATION 60 
// Digital pin used for inclusion mode button
#define MY_INCLUSION_MODE_BUTTON_PIN  3 
After toggling the inclusion button I get the following in the Domoticz log:

Code: Select all

2019-02-16 14:29:31.520 MySensors: Inclusion mode=1
2019-02-16 14:30:31.566 MySensors: Inclusion mode=0
So the inclusion messages arrive and are 'handled'. But there is no difference in the way new nodes/childs are handled when Inclusion mode=1 or when Inclusion mode=0.
From (older) discussions in the MySensors forum I conclude that it is up to the controller (i.e. Domoticz) to handle upon Inclusion mode signal by accepting or blocking new nodes/childs dependent on the state (0/1) of the Inclusion mode.
Since I see no difference I think this is not implemeted.

Has anyone else experience with this?

Thanks, Mark