03-20-2024, 11:46 AM
(This post was last modified: 03-20-2024, 12:01 PM by Floeckchen.)
(01-13-2024, 12:40 AM)admin Wrote: mqtt is easy for integration.
"net remote IAP" tool , local IP is your computer's IP address, do you have input it?
here is video tour how to update firmware for H32B Pro: https://youtu.be/JFKeKv8Ks_4
Maybe so, but I can´t seem to find the correct documentation or follow it correctly. Here is where I´m stuck:
I have connected the H32B-Pro to the router and can successfully ping it under 192.168.1.200
I have successfully updated the H32B-Pro to the firmware v1.19
When I access the web terminal of the H32B-Pro via its local IP, the default values for "Firmware Version", "MAC" and "UID" are greyed out. This is neither the case in the Youtube video nor the documentation.
Anyway, I enter all the information:
IP: 192.168.1.200 (static local IP of H32B-Pro controller shown in the router)
Port: 4196
Subnet mask: 255.255.255.0 (same as router config)
Gateway: 192.168.1.1 (router IP)
Work Mode: MQTT
IP MODE: DHCP
Domain Name : left empty (not shown in documentation?!? Newer version??)
Server IP: 192.168.1.27 (static local IP of RaspberryPi, running Home Assistant with Mosquitto MQTT Server AddIn installed)
Server Port: 1883 (double-checked in Mosquitto config)
MQTT username: same as shown in Mosquitto config
MQTT password: same as shown in Mosquitto config
The WIFI settings I leave blank.
I click "Save", the controller power-cycles and shows constant white led on ethernet for client mode.
If I now try to log onto the web portal of the controller, username/password fails for the default "admin". Might not be a problem, as it no longer is a server. Just an observation.
Now I go the the Home Assistant file editor and paste the following. replacing the xxx with the proper UID found via your scan tool:
mqtt:
switch:
name: 'output-1'
unique_id: output-1
state_topic: 'server/xxxxxxxxxxxxxxxxxxx/state'
command_topic: 'server/ xxxxxxxxxxxxxxxxxxx /set'
payload_on: '{"relay1":{"on":1}}'
payload_off: '{"relay1":{"on":0}}'
value_template: '{{ value_json.relay1.on }}'
state_on: 1
state_off: 0
When I restart the Home Assistant, a new entity "output-1" shows up for the MQTT integration.
When I toggle the switch, nothing happens.
What am I missing? Is there a different documentation?
Thank you very much for your help. Looking at the videos it seems so easy to integrate into HA, but I am stuck.
Kind Regards.