ja bei dir steht 0-7 im mapping, allerdings fängst du hier wieder bei 1 an?
HK1_BW1_AUSSCHALTOPTIMIERUNG= 0 if (value & 1 ==0 ) else 1
wie dem auch sei, ich habe beides ausprobiert:
if ID==b"\x80\x00":
AUSSCHALTOPT = 0 if (telegram[2] & 1 ==0 ) else 1
print ("BW1 Ausschaltopt : ", AUSSCHALTOPT)
publish.single("Heizung/log/BW1-Ausschaltopt",AUSSCHALTOPT, hostname="127.0.0.1")
EINSCHALTOPT = 0 if (telegram[2] & 2 ==0 ) else 1
print ("BW1 Einschaltopt : ", EINSCHALTOPT)
publish.single("Heizung/log/BW1-Einschaltopt",EINSCHALTOPT, hostname="127.0.0.1")
AUTOMATIK = 0 if (telegram[2] & 3 ==0 ) else 1
print ("BW1 Automatik : ", AUTOMATIK)
publish.single("Heizung/log/BW1-Automatik",AUTOMATIK, hostname="127.0.0.1")
WWVORRANG = 0 if (telegram[2] & 4 ==0 ) else 1
print ("BW1 WWVorrang : ", WWVORRANG)
publish.single("Heizung/log/BW1-WWVorrang",WWVORRANG, hostname="127.0.0.1")
ESTRICH = 0 if (telegram[2] & 5 ==0 ) else 1
print ("BW1 Estrich : ", ESTRICH)
publish.single("Heizung/log/BW1-Estrich",ESTRICH, hostname="127.0.0.1")
FERIEN = 0 if (telegram[2] & 6 ==0 ) else 1
print ("BW1 Ferien : ", FERIEN)
publish.single("Heizung/log/BW1-Ferien",FERIEN, hostname="127.0.0.1")
FROST = 0 if (telegram[2] & 7 ==0 ) else 1
print ("BW1 Frost : ", FROST)
publish.single("Heizung/log/BW1-Frost",FROST, hostname="127.0.0.1")
MANUELL = 0 if (telegram[2] & 8 ==0 ) else 1
print ("BW1 Manuell : ", MANUELL)
publish.single("Heizung/log/BW1-Manuell",MANUELL, hostname="127.0.0.1")
wenn die heizung auf auto steht kommt folgendes:
BW1 Ausschaltopt : 0
BW1 Einschaltopt : 0
BW1 Automatik : 0
BW1 WWVorrang : 1
BW1 Estrich : 1
BW1 Ferien : 1
BW1 Frost : 1
BW1 Manuell : 0
bzw
BW1 Ausschaltopt : 0
BW1 Einschaltopt : 0
BW1 Automatik : 0
BW1 WWVorrang : 0
BW1 Estrich : 1
BW1 Ferien : 1
BW1 Frost : 1
BW1 Manuell : 1
steht die heizung auf manuell dann kommt:
BW1 Ausschaltopt : 0
BW1 Einschaltopt : 0
BW1 Automatik : 0
BW1 WWVorrang : 0
BW1 Estrich : 0
BW1 Ferien : 0
BW1 Frost : 0
BW1 Manuell : 0
da passt doch immer noch was nicht...
schwere geburt...
danke und gruß
ben