Open HeneryH opened 2 months ago
Hi, sorry for the delay, I was offline :)
Let's try to change your config file to this:
device_name: pzw-1
mqtt:
broker: 192.168.1.96
port: 1883
username: my_user
password: my_pw
state_topic: state
command_topic: cmnd
homeassistant:
discovery: true
discovery_prefix: homeassistant
i2c:
device_address: 0x11
register_address:
1: 0x10
state_topic
: the code already configures the topics accordingly here, like STATE_TOPIC = 'I2C/'+DEVICE_NAME+'/'+MQTT_STATE_TOPIC
Sorry for the "issue" submission.
Here is the log from the app
This is what I see coming from my pi running the i2c_2_mqtt app. The mosquito broker in HomeAssistant is logging this...
192.168.1.161 is indeed the pi-zer-w that I am trying this on.
Here is my config
I am using a different relay board than you so the i2c commands are a little different. I can only bang a single register at 0x10 to turn relays on and off. Unfortunately no reading of current state.
Any ideas why the new device is not showing as discovered in my HA server? That HA/Mosquito log doesn't seem like what I was expecting.