default duration impulse doesn't work on CONTROLLINGTHEDOORLOCK

micdj
Posts: 31
Joined: Wed Jan 06, 2021 2:23 am

Post

Hello, I'm trying to set default value to relay1 with no success

Code: Select all

g_relay1 = new Supla::Control::Relay(RELAY1_PIN, true);
        g_relay1->setDefaultFunction(SUPLA_CHANNELFNC_CONTROLLINGTHEDOORLOCK);
		g_relay1->setDefaultImpulseDurationMs(500);
        g_relay1->getChannel()->setInitialCaption("START");
Can you help me?
User avatar
klew
Posts: 13905
Joined: Thu Jun 27, 2019 12:16 pm
Location: Wrocław
Has thanked: 134 times
Been thanked: 137 times

Post

micdj wrote: Sat Apr 25, 2026 9:05 pm
What is actually not working?
This default impulse will be used by device when there is no other duration stored in flash or right after changing it's function to i.e. "controlling the door lock".
However this value is used only internally by the device. Currently config exchange with server is not implemented for this function, so on Cloud you may see different value.
Najlepsze suple dla Twojego domu :mrgreen:
micdj
Posts: 31
Joined: Wed Jan 06, 2021 2:23 am

Post

Hello, thank you for answer, after reset to factory, time for CONTROLLINGTHELOCKDOOR is not 0,5 seconds as I set in firmware, but 6 seconds, the same I see on cloud setting
User avatar
klew
Posts: 13905
Joined: Thu Jun 27, 2019 12:16 pm
Location: Wrocław
Has thanked: 134 times
Been thanked: 137 times

Post

micdj wrote: Sun Apr 26, 2026 2:58 pm Hello, thank you for answer, after reset to factory, time for CONTROLLINGTHELOCKDOOR is not 0,5 seconds as I set in firmware, but 6 seconds, the same I see on cloud setting
Yes, config exchange is not implemented for this channel function, so cloud will use it's own default value instead
Najlepsze suple dla Twojego domu :mrgreen:

Return to “Help”