Hello,
How do you revert to on/off switch with extended plugin framework? The Update() method of Unit object allow only TypeName (not Type / SubType / SwitchType) as parameter to change a switch type. If I create a switch as "Contact" TypeName, it seems that I cannot come back to standard on/off switch with Update(TypeName="Switch") because in Domoticz maptypename function (https://github.com/domoticz/domoticz/bl ... s.cpp#L375), SwitchType is not enforced when TypeName == "Switch" and Update() method from Python doesn't allow to set SwitchType.
Thank you for your suggestions.
Change SwitchType in extended plugin framework
Moderator: leecollings
-
- Posts: 140
- Joined: Wednesday 02 December 2015 21:47
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Location: France
- Contact:
-
- Posts: 140
- Joined: Wednesday 02 December 2015 21:47
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Location: France
- Contact:
-
- Posts: 140
- Joined: Wednesday 02 December 2015 21:47
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Location: France
- Contact:
Re: Change SwitchType in extended plugin framework
And I created a PR to be able to change by type/subtype/switchtype like normal plugin framework
https://github.com/domoticz/domoticz/pull/6079
https://github.com/domoticz/domoticz/pull/6079
Who is online
Users browsing this forum: No registered users and 1 guest