01-16-2023, 04:25 PM
(01-16-2023, 01:09 PM)admin Wrote: 1. can you take a screen photo of your network setting webpage? i want to see your H32BS firmware version and how you set in relay recovery option.
2. 1-32 DI (green terminal) can use for control output ON/OFF, there is an option in network setting webpage called "SW trigger output". if you enable it, 1-32 DI can control output directly, will not send mqtt message. if you disable it, when you trigger input, will feedback mqtt message.
1-6 DI(blue terminal) manly use for sensor, so it will feedback DIx mqtt message.
"Basically the "relay1, relay2,..." is disappearing from the state value and becomes D1, D2, D3... This generates tons of errors 3000 errors in 2 hours."
i don't understand this, can you take photo video.
I'm sending 6 pictures. First 4 pictures with all my settings, picture no.5 is home assistant error log from mqtt (H32BS) and picture no.6 is one of my wall switches.
When I click on wall switch button wired to BLUE terminal in MQTT explorer I get this and this is OK!
Code:
{"relay1":{"on":0},"relay2":{"on":0},"relay3":{"on":0},"relay4":{"on":0},"relay5":{"on":0},"relay6":{"on":1},"relay7":{"on":0},"relay8":{"on":0},"relay9":{"on":0},"relay10":{"on":0},"relay11":{"on":0},"relay12":{"on":0},"relay13":{"on":0},"relay14":{"on":0},"relay15":{"on":0},"relay16":{"on":0},"relay17":{"on":0},"relay18":{"on":0},"relay19":{"on":0},"relay20":{"on":0},"relay21":{"on":0},"relay22":{"on":0},"relay23":{"on":0},"relay24":{"on":1},"relay25":{"on":0},"relay26":{"on":0},"relay27":{"on":0},"relay28":{"on":0},"relay29":{"on":0},"relay30":{"on":0},"relay31":{"on":0},"relay32":{"on":0},"input1":{"on":1},"input2":{"on":1},"input3":{"on":1},"input4":{"on":1},"input5":{"on":1},"input6":{"on":1}}
When I click on wall switch wired to the BLUE terminal in MQTT explorer I am receiving this:
Code:
{"DI1":{"on":1},"DI2":{"on":1},"DI3":{"on":1},"DI4":{"on":0},"DI5":{"on":1},"DI6":{"on":1},"DI7":{"on":1},"DI8":{"on":1},"DI9":{"on":0},"DI10":{"on":1},"DI11":{"on":1},"DI12":{"on":1},"DI13":{"on":1},"DI14":{"on":1},"DI15":{"on":1},"DI16":{"on":1},"DI17":{"on":0},"DI18":{"on":0},"DI19":{"on":0},"DI20":{"on":0},"DI21":{"on":0},"DI22":{"on":0},"DI23":{"on":0},"DI24":{"on":0},"DI25":{"on":0},"DI26":{"on":1},"DI27":{"on":1},"DI28":{"on":0},"DI29":{"on":0},"DI30":{"on":0},"DI31":{"on":0},"DI32":{"on":0},"DI33":{"on":0},"DI34":{"on":0},"DI35":{"on":1},"DI36":{"on":1},"DI37":{"on":0},"DI38":{"on":1},"DI39":{"on":1},"DI40":{"on":1}}
Code:
- name: "szoba_3_villany"
unique_id: szoba_3_villany
schema: template
state_topic: "relay32/3dfd899b71b9d0bb3d468def/state"
command_topic: "relay32/3dfd899b71b9d0bb3d468def/set"
command_on_template: '{"relay13":{"on":1}}'
command_off_template: '{"relay13":{"on":0}}'
state_template: >
{% if "relay13" in value_json %}
{% if value_json.relay13.on == 1 %} on {% else %} off {% endif %}
{% endif %}