Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Getting Started with H32B Pro
#1
I'm trying this video to connect to the PLC via wifi, but do you have a similar video for H32B Pro controller?  Basically, I have now connected the controller with 23v 5A DC power supply and trying to get it connected to wifi and then to bring the contoller to my Home Assistant app and take things from there, but I don't see the controller wifi active yet.

https://www.youtube.com/watch?v=2AViXMH8yHM
Reply
#2
sorry, i don't understand your question. which model board you are using? what software you want use by wifi? do you want integrate to home assistant by MQTT via wifi?
Reply
#3
(09-30-2023, 11:26 PM)admin Wrote: sorry, i don't understand your question. which model board you are using? what software you want use by wifi?  do you want integrate to home assistant by MQTT via wifi?

Okay, the board I'm trying to use i H32B Pro and software is Home Assistant.  I'm trying to integrate the board via MQTT, but I'm getting this error.


Configuration invalid!
Invalid config for [mqtt]: The 'broker' option near /config/configuration.yaml:16 has been removed, please remove it from your configuration @ data['mqtt'][0]. Got None. (See /config/configuration.yaml, line 16).

I have put the following lines in the configuration.yaml file.

mqtt:

  broker: 192.168.1.150
  port: 1883
  username: ******
  password: '*******'

  switch:
    - platform: mqtt
      name: ‘relay32B-1’
      unique_id: relay32B-1
      state_topic: ‘relay32/4b734209672e642732529f28/state’
      command_topic: ‘relay32/4b734209672e642732529f28/set’
      payload_on: ‘{“relay1”:{“on”:1}}’
      payload_off: ‘{“relay1”:{“on”:0}}’
      value_template: ‘{{ value_json.relay1.on }}’
      state_on: 1
      state_off: 0
Reply
#4
This is the new version of config yaml syntax, remove all mqtt broker code in yaml.
Reply
#5
(10-03-2023, 01:10 PM)admin Wrote: This is the new version of config yaml syntax, remove all mqtt broker code in yaml.

I edited the code to this one.  Now, no error and I can see relay32B-1 entity in my Home Assistant now, but it doesn't work - it does not switch the relay.  Btw, I can control the relay with Tuya app and also from the relay board webpage, so the board is working well, but still no success integrating it with HA.

mqtt:
  switch:
    - name: ‘relay32B-1’
      unique_id: relay32B-1
      state_topic: ‘relay32/4b734209672e642732529f28/state’
      command_topic: ‘relay32/4b734209672e642732529f28/set’
      payload_on: ‘{“relay1”:{“on”:1}}’
      payload_off: ‘{“relay1”:{“on”:0}}’
      value_template: ‘{{ value_json.relay01.on }}’
      state_on: 1
      state_off: 0
Reply
#6
do you have installed mosquito mqtt broker in your home assistant?
how you set in your h32b controller's webpage? take a screen photo upload to here.
Reply
#7
(10-03-2023, 10:55 PM)admin Wrote: do you have installed mosquito mqtt broker in your home assistant?
how you set in your h32b controller's webpage? take a screen photo upload to here.

Okay, here are the screenshots.


Attached Files Image(s)
               
Reply
#8
There is a problem with all your punctuation marks, for example:

your lines: payload_on: ‘{“relay1”:{“on”:1}}’

it should be: payload_on: '{"relay1":{"on":1}}'

do you see the “ ---> " ‘ ----> '
Reply
#9
Thumbs Up 
(10-05-2023, 12:27 AM)admin Wrote: There is a problem with all your punctuation marks, for example:

your lines: payload_on: ‘{“relay1”:{“on”:1}}’

it should be: payload_on: '{"relay1":{"on":1}}'

do you see the “ --->  "    ‘ ----> '

Yes, that was exactly the issue..... Thanks a lot for resolving this sir.
Reply
#10
ok
Reply


Forum Jump:


Users browsing this thread:
1 Guest(s)