Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
H32B Pro No integration possible in Home assistant
#1
Hello

I'm struggling with the integration of the H32B Pro controller into Home assistant via MQTT on Ethernet.
So I followed all the steps like in your video  (https://www.youtube.com/watch?v=wMkQccSFY3A&t=406s )
But I cannot see any entity of the relay inputs/Outputs. 

Instead in the log files I get fault messages on the configuration code:

Logger: homeassistant.config
Source: config.py:1300

Invalid config for 'mqtt' at configuration.yaml, line 13: 'broker' is an invalid option for 'mqtt', check: mqtt->0->broker, please check the docs at https://www.home-assistant.io/integrations/mqtt Invalid config for 'mqtt' at configuration.yaml, line 13: 'password' is an invalid option for 'mqtt', check: mqtt->0->password, please check the docs at https://www.home-assistant.io/integrations/mqtt Invalid config for 'mqtt' at configuration.yaml, line 13: 'port' is an invalid option for 'mqtt', check: mqtt->0->port, please check the docs at https://www.home-assistant.io/integrations/mqtt Invalid config for 'mqtt' at configuration.yaml, line 13: 'username' is an invalid option for 'mqtt', check: mqtt->0->username, please check the docs at https://www.home-assistant.io/integrations/mqtt






In the file editor I added the configuration code with the Broker IP adress of the Raspberry pie 5 it's running on, and filled in the correct UID.

Here is what I filled in:

/homeassistant/configuration.yaml


mqtt:
  broker: 192.168.0.25
  port: 1883
  username: mqtt
  password: 123

  switch:
  - name: 'output-1'
    unique_id: output-1
    state_topic: 'relay32/582284c1f1ea0c0db02022b1/state'
    command_topic: 'relay32/582284c1f1ea0c0db02022b1/set'
    payload_on:  '{"relay1":{"on":1}}'
    payload_off:  '{"relay1":{"on":0}}'
    value_template: '{{ value_json.relay1.on }}'
    state_on: 1
    state_off: 0

....

I installed the Mosquitto broker and the MQTT integration I can't see what Im missing here
   
   
   
   
Reply
#2
because new home assistant version have use new MQTT syntax. these days when i have free time, make a config sample code for you.
Reply
#3
(10-29-2024, 10:22 AM)admin Wrote: because new home assistant version have use new MQTT syntax. these days when i have free time, make a config sample code for you.

Okay thank you, looking forward to it !
Reply
#4
you can see here about "home assistant RC 2022.6 mqtt config update for configuration.yaml": https://www.kincony.com/forum/showthread.php?tid=1998
also you need to delete these from you code:
----------------------------
broker: 192.168.0.25
port: 1883
username: mqtt
password: 123
----------------------------
Reply
#5
I followed your steps, and applied the new mqtt config syntaxx like in te link you provided, and it worked. 

I also added the binary sensor inputs succesfully.

Thank you!

   
Reply
#6
ok, good.
Reply


Forum Jump:


Users browsing this thread:
1 Guest(s)