10-03-2023, 12:17 PM
(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