I’m starting to figure out some things (finally)
here is my simplified setup:
Item
Number Pluggit_ActiveUnitMode "Active Mode [MAP(Pluggit.map):ActiveUnitMode_%s]" <settings> (gPluggit) { channel="modbus:data:PluggitAP310:prmRamIdxUnitMode:register:number" }
Thing
Bridge modbus:tcp:PluggitAP310 [ host="192.168.143.4", port=502, id=1 ] {
Bridge poller prmRamIdxUnitMode [ start=168, length=4, refresh=5000, type="holding" ]
{
Thing data register [ readStart="168", readValueType="uint16", writeValueType="int32_swap", writeStart="168", writeMultipleEvenWithSingleRegisterOrCoil=true, writeType="holding" ]
}
}
Sitemap
sitemap home label="home" {
Frame label="General"
{
Selection item=Pluggit_ActiveUnitMode mappings=[
4 = "Bypass-Auto (4)",
132 = "Bypass-Manuall (132)",
2048 = "Summer (2048)",
128 = "Bypass On(128)",
32896 = "Bypass On (32896)",
2052 = "Summer-from-Pluggit (2052)",
2180 = "Bypass-Manuall2 (2180)",
34816 = "Stop Summer (34816"
]
}
}
I gathered some Info about the modes by switching the HVAC via the pluggit app and my “smart home” system (myGekko).
This is what I found out:
The App and my Smart-Home Screen give me 3 Options (and I dont use the other modes like week schedule, fireplace etc.):
- Auto (Bypass closed)
- Manual (Bypass open)
- Summer
I’m going to use those names from now on to explain the situation
Here is the log when switching it into those modes (either from app or smar home)
Auto (bypass closed):
Pluggit_ActiveUnitMode changed to 4
Pluggit_CurrentUnitState changed to 1
Manual (bypass open):
Pluggit_ActiveUnitMode changed to 1
Pluggit_CurrentUnitState changed to 132
Summer:
Pluggit_ActiveUnitMode changed to 2052
Pluggit_CurrentUnitState changed to 6
I have now tested many modes and switching in between and cannot find a consistent method of switching between those.
Here is my list of modes and what value I sent and what the result then was… (always refering to the modes above which are (in my opinion) the correct ones.
Mode: Manual (reads 132)
Task 1 (Change to Summer)
(working) 2180 -> turns into Summer (reads 2052)
(not working) 2048 -> stays in Manual (reads 2180) aka Manual #2
(not working) 2052 -> stays in Manual (reads 2180) aka Manual #2
(not working) 34816 -> stays in Manual (reads 2180) aka Manual #2
Task 2 (Change to Auto)
(working) 32896 -> turns into Auto (reads 4)
(working) 128 -> turns into Auto (reads 4)
(?working?) 4 -> stays in Manual (reads 132)
Mode: Auto (reads 4)
Task 1 (Change to Summer)
(working) 2048 -> turns into Summer (reads 2052)
(working) 2052 -> turns into Summer (reads 2052)
(working) 34816 -> turns into Summer (reads 2052)
Task 2 (Change to Manual)
(working) 128 -> turns into Manual (reads 132)
(working) 132 -> turns into Manual (reads 132)
(working) 32896 -> turns into Manual (reads 132)
(?working?) 2180 -> turns into Manual (reads 2180) aka Manual #2
Mode: Summer (reads 2052)
Task 1 (Change to Manual)
(working) 2180 -> turns into Manual (reads 132)
(?working?) 132 -> turns into Manual (reads 2180) aka Manual #2
(?working?) 128 -> turns into Manual (reads 2180) aka Manual #2
(?working?) 32896 -> turns into Manual (reads 2180) aka Manual #2
Task 2 (Change to Auto)
(working) 2048 -> turns into Auto (reads 4)
(working) 34816 -> turns into Auto (reads 4)
(not working) 4 -> stays in Summer (reads 4)
weird mixed mode, reading a correct value of 4 which is Auto but the Unit still is in Summer mode...
Mode: Manual #2 (reads 2180)
on Smart Home Unit
-> If I want to put it in Summer it won't let me (switches instatly back to Manual reading 2180)
Selecting Auto results in it going to Auto for a second but then it goes into Summer Mode (reads 2052) so really strange
Task 1 (Change to "normal" Manual)
(working) 34816 -> turns into Manual (reads 132)
(working) 4 -> stays in Manual (reads 132)
(working) 2048 -> stays in Manual (reads 132)
(working) 2052 -> stays in Manual (reads 132)
Task 2 (Change to Summer)
(working) 128 -> turns into Summer (reads 2052)
(working) 132 -> turns into Summer (reads 2052)
(working) 32896 -> turns into Summer (reads 2052)
Task 3 (Change to Auto)
no values left to test....
So as I see the status of my ‘investigation’ now there is no consistent value that will
-
always turn on Summer mode (2180 from Manual or 128/132 from Auto)
-
always turn on Auto mode (128/32896 from Manual or 2048/34816 from Summer)
-
always turn on Manual mode (2180 from Summer or 128/132/32896 from Auto)
Am I completely off by saying that there needs to be some conditional coding somewhere that takes the current state into account and switching modes based on that (some .rules file I imagine)???
This would be kinda weird since the official pluggit app and my smart home system can do it with one button or they both also use some conditional switching behind the scenes who knows