Hello all
I’m trying to inclucde a MobileAlerts weatherstation into my home assistant envorinment.
On my Synology NAS I’m running this script:
{
"localIPv4Address": "192.168.0.xxx",
"mqtt": "mqtt://192.168.0.xxx",
"mqtt_home": "MobileAlerts/",
"mqtt_username": "mqtt_alert",
"mqtt_password": "MY_PASSWORT",
"logfile": "./MobileAlerts.log",
"logGatewayInfo": false,
"proxyServerPort": 8080,
"mobileAlertsCloudForward": false,
"serverPost": null,
"serverPostUser": null,
"serverPostPassword": null
}
On my home assistant server (a raspberry) I’ve installed MQTT broker with the following configuration:
logins:
- username: mqtt_alert
password: MY_PASSWORT
anonymous: false
customize:
active: false
folder: MobileAlerts
certfile: fullchain.pem
keyfile: privkey.pem
require_certificate: false
Now, on my NAS i see that the service is running:
### Local IP address for proxy: 192.168.0.172
(node:31664) [DEP0005] DeprecationWarning: Buffer() is deprecated due to security and usability issues. Please use the Buffer.alloc(), Buffer.allocUnsafe(), or Buffer.from() methods instead.
Mobile-Alert Gateway : 001d8c0dffb7
Name : MOBILEALERTS-Gateway
Use DHCP : true
DHCP IP : 192.168.0.xxx
Fixed IP : 192.168.1.xxx
DHCP Netmask : 255.255.255.0
Fixed DNS IP : 192.168.1.xxx
Fixed Gateway : 192.168.1.xxx
Use Proxy : true
Proxy Server Name : 192.168.0.xxx
Proxy Port : 8080
Data Server Name : www.data199.com
### MQTT server is connected
undefined MobileAlerts/035xxc2xxd54d/json {"temperature":[22.4,22.4],"humidity":[63,63],"id":"0x35c27xxxx3d74d","t":"2020-11-03T18:40:58.000Z","offline":false}
undefined MobileAlerts/03xxxxxx6B08A6/json {"temperature":[22.1,22.1],"humidity":[62,62],"id":"03xxxxxx6B08A6","t":"2020-11-03T18:41:15.000Z","offline":false}
Finally, I tried the following configuration (configuration.yaml)
mqtt:
broker: 192.168.0.xxx
port: 1883
username: mqtt_alert
password: MY_PASSWORD
sensor:
- platform: mqtt
name: "aaa"
state_topic: "MobileAlerts/03xxxxxx6B08A6/json"
unit_of_measurement: '°C'
value_template: "{{value_json.temperature[0]}}"
But, the sensor state remains always “unknown”.
Does somebody see what I did wrong?
Thank you very much for your help and ideas.
Marco