I have global publish settings in FHEM for MQTT:
attr mqttGeneric globalDefaults sub:qos=2 pub:qos=0 retain=1 attr mqttGeneric globalPublish *:topic={"fhem/$device/$reading"}
attr Aqara_Button_2 mqttPublish state:topic={"fhem/Aqara_Button_2/state"} state:qos=0 state:retain=0 attr Fibaro_Dimmer_2 mqttPublish s2clicks:topic={"fhem/Fibaro_Dimmer_2/s2clicks"} s2clicks:qos=0 s2clicks:retain=0
I suspect there is something wrong with that command and retain flag is not changed successfully by this or something else needs to be restarted
PS. I've tried to change qos to 2 with that command:
attr Aqara_Button_2 mqttPublish state:topic={"fhem/Aqara_Button_2/state"} state:qos=2 state:retain=0
Shall I restart Mosquito or do something else?
Kommentar