Hi!
I’m pretty new to Hassio but even newer to MQTT. I’ve built a MySensors (MS) MQTT gateway and a simple binary sensor that I know are working. MQTT topics are sent out from the MS gateway and I’ve validated the topic data using the MS Log Parser.
The problem is I’m not getting anything in the homeassistant.log file so I have no idea how to identify the sensor.
Am I going about things the wrong way? It feels like I’m so close but I just can’t work it out.
My configuration is below, I’m using the hassio mqtt addon as the broker.
configuration.yaml
homeassistant:
name: Home
latitude: !secret home_lat
longitude: !secret home_long
elevation: 43
unit_system: metric
time_zone: Europe/Stockholm
customize: !include includes/customize.yaml
# Enables the frontend
frontend:
# Enables configuration UI
config:
http:
api_password: !secret hass_api_pass
server_port: 443
ssl_certificate: /ssl/hass.pem
ssl_key: /ssl/hass_s.key
cors_allowed_origins:
- https://google.com
- https://home-assistant.io
use_x_forwarded_for: True
trusted_networks:
- 127.0.0.1
- ::1
- 10.10.1.0/24
- 10.1.1.0/24
- 172.31.254.0/24
ip_ban_enabled: False
login_attempts_threshold: 5
# Discover some devices automatically
discovery:
# Allows you to issue voice commands from the frontend in enabled browsers
conversation:
# Enables support for tracking state changes over time
history:
# View all events in a logbook
logbook:
# Enables a map showing the location of tracked devices
map:
# Track the sun
sun:
# Text to speech
tts:
- platform: google
# Enable Z-Wave
zwave:
usb_path: /dev/ttyACM0
network_key: "0xFA, 0x08, 0x7A, 0xA9, 0x1A, 0xE7, 0xF1, 0x08, 0x0D, 0x83, 0x8C, 0xEF, 0xC6, 0x57, 0x83, 0x76"
# Tellstick
tellstick:
host: core-tellstick
port: [50800, 50801]
signal_repetitions: 7
# MQTT
mqtt:
broker: core-mosquitto
username: !secret mqtt_user
password: !secret mqtt_pass
client_id: hass01
# MySensors
mysensors:
gateways:
- device: mqtt
persistence_file: 'mysensors/mysensorsPer.json'
topic_in_prefix: 'mqttgw1-in'
topic_out_prefix: 'mqttgw1-out'
optimistic: false
persistence: true
retain: true
version: '2.0'
# Logger
logger:
default: warning
logs:
homeassistant.components.mysensors: debug
mysensors: debug
homeassistant.components.mqtt: debug
##########################################################
# Includes
##########################################################
automation: !include includes/automations.yaml
device_tracker: !include includes/device_tracker.yaml
group: !include includes/groups.yaml
media_player: !include includes/mediaPlayers.yaml
script: !include includes/scripts.yaml
sensor: !include includes/sensors.yaml
switch: !include includes/switches.yaml
zone: !include includes/zones.yaml
MQTT Add-On config
{
"plain": true,
"ssl": true,
"anonymous": false,
"logins": [
{
"username": "hassmqtt",
"password": "redacted"
}
],
"customize": {
"active": false,
"folder": "mosquitto"
},
"certfile": "hass.pem",
"keyfile": "hass_s.key"
}
homeassistant.log
2018-01-17 22:02:59 INFO (Thread-3) [mysensors.gateway_mqtt] Setting up initial MQTT topic subscription
2018-01-17 22:02:59 DEBUG (Thread-3) [mysensors.gateway_mqtt] Subscribing to: mqttgw1-in/+/+/0/+/+, qos: 0
2018-01-17 22:02:59 DEBUG (Thread-3) [mysensors.gateway_mqtt] Subscribing to: mqttgw1-in/+/+/3/+/+, qos: 0
2018-01-17 22:03:09 WARNING (SyncWorker_5) [netdisco.ssdp] Error fetching description at http://10.10.1.254:8200/rootDesc.xml
2018-01-17 22:10:44 ERROR (MainThread) [homeassistant.core] Timer got out of sync. Resetting
MySensors Console Output
0;255;3;0;9;Sending message on topic: mqttgw1-out/1/3/1/0/16
0;255;3;0;9;TSF:MSG:READ,1-1-0,s=3,c=1,t=16,pt=2,l=2,sg=0:1
0;255;3;0;9;Sending message on topic: mqttgw1-out/1/3/1/0/16
0;255;3;0;9;TSF:MSG:READ,1-1-0,s=3,c=1,t=16,pt=2,l=2,sg=0:0
0;255;3;0;9;Sending message on topic: mqttgw1-out/1/3/1/0/16
0;255;3;0;9;TSF:MSG:READ,1-1-0,s=3,c=1,t=16,pt=2,l=2,sg=0:1
0;255;3;0;9;Sending message on topic: mqttgw1-out/1/3/1/0/16
Any would be so appreciated!
EDIT: Forgot to add, hassio version is 0.60.1
/Ed