01-21-2017, 10:01 PM
Hi,
I've received my vAir Monitor today .
Connecting with the Chrome app worked flawlessly. Setting up the Wifi connection too - I can ping the vAir from both my PC and the system that is running HomeAssistant.
I've used the chrome app to setup the MQTT connection to HomeAssistant (v 0.36). I'm using the MQTT broker that is embedded into HA with the default config:
I configured the following sensors in HA:
Using a MQTT app on android, I can connect to the broker. A publish to the topic immediately shows up in the HA user interface. So I'm guessing that broker and HomeAssistant are set up correctly.
Now, when I try to get the vAir device to publish, it runs into an error:
--> No connection. This will remain the same for all further updates.
HomeAssistant shows an error in the log:
HomeAssistant is using HBMQTT, which is a "MQTT 3.1.1 compliant broker implementation".
Any ideas? Did anyone get the vAir monitor working with HomeAssistant?
I've received my vAir Monitor today .
Connecting with the Chrome app worked flawlessly. Setting up the Wifi connection too - I can ping the vAir from both my PC and the system that is running HomeAssistant.
I've used the chrome app to setup the MQTT connection to HomeAssistant (v 0.36). I'm using the MQTT broker that is embedded into HA with the default config:
Code:
Setting Value
Host <ip>
Port 1883
Protocol 3.1.1
User homeassistant
Password <none>
Websocket port 8080
I configured the following sensors in HA:
Code:
sensor:
- platform: mqtt
state_topic: "air/temperature"
name: 'Temp'
unit_of_measurement: '°C'
Using a MQTT app on android, I can connect to the broker. A publish to the topic immediately shows up in the HA user interface. So I'm guessing that broker and HomeAssistant are set up correctly.
Now, when I try to get the vAir device to publish, it runs into an error:
Quote:Searching for v.Air . . . . . . . . . . . . . . . . . . . Searching for v.Air Trying : COM6(if removed hostnames and passwords here. They show up correct in the log)
. . [HÍkèD]
[XÀ ]
[ðB(]
[òðû]
[ ÁHeap at start: 37392]
. [vESPrino v1.16 build20170103]
vESPrino found on : COM6
[)
--- Setup PLUGINS ---
Neopixel
DweetIO]
[nop 0
ready >
WebServer
WebSocketServer]
[PowerManager
GPIO
info
vESPrino v1.16 build20170103
IP address: 192.168.178.233
Chip ID: D549B3
ready >
Servo]
[Annemometer]
[crc40prop_list
prop_list
---vESPrinoCFG_start---
cubic.co2.missing=missing
ds18b20.port=missing
rf.CO2=136
rf.PM25=137
rf.PM10=138
rf.TEMP=140
rf.HUM=141
rf.PRES=142
rf.GEN=143
send.interval=120
temp.adjustment=-0.4
wifi.staticip=192.168.178.233
wifi.gateway=192.168.178.1
wifi.subnet=255.255.255.0
wifi.dns1=192.168.178.1
wifi.ssid=<myssid>
wifi.p1=<the password>
mqtt.server=<home-assistant-host-name>
mqtt.port=1883
mqtt_msg_arr0=air/temp:%TEMP%
oh.cfg={"ohHost":"<home-assistant-host-name>","ohPort":"1883","ohCO2":"","ohTEMP":"air/temp","ohHUM":"","ohPRES":"","ohPM25":"","ohPM10":"","ohLUX":""}
---vESPrinoCFG_end---]
[ready >
TimerManager
--- Setup SENSORS ---
CO2
TEST]
[SI7021
Found SI7021 - Temperature/Humidity Sensor]
[BME280]
[BMP085]
[PM2005
Found PM2005 - Dust / Particle Sensor]
[CDM7160
Found CDM7160 CO2 Sensor
DS18B20
TSL2561]
[BH1750]
[APDS9960]
[--- Setup DESTINATIONS ---
CustomHTTP
SerialDump
MQTT
RFX10]
[Blynk]
[Heap At setup end: 34520
------State changed to: 3
IP address: 192.168.178.233 in 7125 ms
GOT IP
sendNowCond]
[--- DestHanlder: sendValue --- 1
Found SI7021 - Temperature/Humidity Sensor]
[Decimal Separator is: .]
[Raw CO2: 2116]
[CustomHTTPDest::process
SerialDumpDest::process
IP : 192.168.178.233
CHIPID : D549B3
RUNTIME : 7
TEMP : 23.59
TEMPR : 23.99
HUM : 45
PM25 : 11
PM10 : 35
CO2 : 2116
CO2R : 2116
MQTTDest::process]
[Sending via MQTT: <home-assistant-host-name>,1883]
[Connecting to server :vESPrino,,]
[Could not connect to MQTT server. Will retry on next iteration
ready >]
--> No connection. This will remain the same for all further updates.
HomeAssistant shows an error in the log:
Quote:17-01-21 20:36:04 homeassistant.core: Error doing job: Fatal read error on socket transport Traceback (most recent call last): File "/usr/lib/python3.4/asyncio/selector_events.py", line 582, in _read_ready data = self._sock.recv(self.max_size) TimeoutError: [Errno 110] Connection timed out 17-01-21 20:36:25 hbmqtt.broker: [MQTT-3.1.0-1] (client @=192.168.178.233:15679): Can't read first packet an CONNECT: [MQTT-3.1.2-1] Incorrect protocol name: "MQIsdp" 17-01-21 20:38:53 hbmqtt.broker: [MQTT-3.1.0-1] (client @=192.168.178.233:10227): Can't read first packet an CONNECT: [MQTT-3.1.2-1] Incorrect protocol name: "MQIsdp"
HomeAssistant is using HBMQTT, which is a "MQTT 3.1.1 compliant broker implementation".
Any ideas? Did anyone get the vAir monitor working with HomeAssistant?