Hi @silvrr
OK, I think this crocodile of a MQTT is getting the better of me, this is what I have:
On the main/master HASS.IO RPi configuration.yaml file I have:
mqtt:
port: 1883
(I have tried the username and password as you suggested, but I am keeping it simple to start with)
On the second/slave RPi, I have this in the configuration.yaml file:
mqtt:
broker: 192.168.0.62
port: 1883
sensor: !include sensors.yaml
(where .62 is the main RPi)
And in the sensors.yaml file on the second/slave RPi I have:
- platform: dht
sensor: AM2302
pin: 4
monitored_conditions:
- temperature
- humidity
- platform: mqtt
state_topic: 'remote/sensor/dht_sensor_temperature/state'
name: "Temperature"
unit_of_measurement: "°C"
- platform: mqtt
state_topic: 'remote/sensor/dht_sensor_humidity/state'
name: "Humidity"
unit_of_measurement: "%"
Now, on the second/slave RPi I can see the following entries on the ‘Overview’ screen:
DHT Sensor Humidity -> this displays a value xx.x%
DHT Sensor Temperature -> this displays a value of xx.xx °C
Humidity -> no value
Temperature -> no value
On the main RPi - cannot see any values/entries from the slave, so I assume nothing is sent via MQTT from slave to master?
The logs on the slave is clean, but on the main RPi I get this:
2018-01-20 22:32:55 ERROR (MainThread) [homeassistant.core] Error doing job: Task exception was never retrieved
Traceback (most recent call last):
File “/usr/lib/python3.6/asyncio/tasks.py”, line 180, in _step
result = coro.send(None)
File “/usr/lib/python3.6/site-packages/hbmqtt/broker.py”, line 342, in stream_connected
yield from self.client_connected(listener_name, StreamReaderAdapter(reader), StreamWriterAdapter(writer))
File “/usr/lib/python3.6/site-packages/hbmqtt/broker.py”, line 357, in client_connected
handler, client_session = yield from BrokerProtocolHandler.init_from_connect(reader, writer, self.plugins_manager, loop=self._loop)
File “/usr/lib/python3.6/site-packages/hbmqtt/mqtt/protocol/broker_handler.py”, line 129, in init_from_connect
connect = yield from ConnectPacket.from_stream(reader)
File “/usr/lib/python3.6/site-packages/hbmqtt/mqtt/packet.py”, line 228, in from_stream
variable_header = yield from cls.VARIABLE_HEADER.from_stream(reader, fixed_header)
File “/usr/lib/python3.6/site-packages/hbmqtt/mqtt/connect.py”, line 104, in from_stream
protocol_name = yield from decode_string(reader)
File “/usr/lib/python3.6/site-packages/hbmqtt/codecs.py”, line 65, in decode_string
length_bytes = yield from read_or_raise(reader, 2)
File “/usr/lib/python3.6/site-packages/hbmqtt/codecs.py”, line 54, in read_or_raise
raise NoDataException(“No more data”)
hbmqtt.errors.NoDataException: No more data
The above makes no sense to me at all, is there anything else that needs doing on the main or slave for seeing data on the main RPi?
Any help would be appreciated!