JQ-300/200/100 Indoor Air Quality Meter

Usually new values ​​come every 10 seconds. If the component has not received new values ​​for more than 30 seconds, it puts the device in the “unavailable” state. As soon as a new value arrives, this state is removed. Hence such a swing. If it is annoying, you can increase the timeout in the const.py file. Constant AVAILABLE_TIMEOUT

I was out by holidays, so I have not tested your suggestion. Now I have returned and it seems to be working without problem. Maybe is a good idea to give some more timeout for this in a future release, who knows if this will happen again.
If it happens again I will test your suggestion.

I changed the value there but still having same issue (of course, I saved the conf and restarted).
The values are constantly (almost) unavailable, but if I click the icons I can see the history going on with updated correct values.
Is there a way to simply shows always the last received value?
I tried setting AVAILABLE_TIMOUT up to 1500seconds, but it did not change the situation

@Limych what about adding the sensors to the new long term statistics of Home Assistant?

In theory only need is to add state_class: measurement if I’m not wrong.

Unfortunately, I can’t get data in HA

Here’s the config from configuration.yaml

jq300:
 username: !secret gmail
 password: !secret pass7
 devices: jq300

iaquk:
 jq300:
   sources:
     humidity: sensor.jq300_humidity
     co2: sensor.jq300_eco2
     tvoc: sensor.jq300_tvoc
     hcho: sensor.jq300_hcho
     pm: sensor.jq300_pm25

Screenshot of integration in UI:
image

Data from log (debug level):

2021-08-06 05:48:06 DEBUG (MainThread) [custom_components.jq300] Connecting to account ******y@gm**l.com
2021-08-06 05:48:06 DEBUG (MainThread) [custom_components.jq300.api] Connecting to cloud server
2021-08-06 05:48:06 DEBUG (MainThread) [custom_components.jq300.api] Requesting URL http://www.youpinyuntai.com:32086/ypyt-api/api/app/loginByEmail
2021-08-06 05:48:14 ERROR (MainThread) [custom_components.jq300.api] Error!
2021-08-06 05:48:14 DEBUG (MainThread) [custom_components.jq300.api] Connecting to cloud server (FORCE mode)
2021-08-06 05:48:14 DEBUG (MainThread) [custom_components.jq300.api] Requesting URL http://www.youpinyuntai.com:32086/ypyt-api/api/app/loginByEmail
2021-08-06 05:48:18 WARNING (MainThread) [homeassistant.config_entries] Config entry 'configuration.yaml' for jq300 integration not ready yet; Retrying in background
2021-08-06 05:49:13 WARNING (MainThread) [custom_components.iaquk] Entity sensor.jq300_humidity not found
2021-08-06 05:49:13 WARNING (MainThread) [custom_components.iaquk] Entity sensor.jq300_eco2 not found
2021-08-06 05:49:13 WARNING (MainThread) [custom_components.iaquk] Entity sensor.jq300_tvoc not found
2021-08-06 05:49:13 WARNING (MainThread) [custom_components.iaquk] Entity sensor.jq300_hcho not found
2021-08-06 05:49:13 WARNING (MainThread) [custom_components.iaquk] Entity sensor.jq300_pm25 not found
2021-08-06 05:49:15 DEBUG (MainThread) [custom_components.jq300] Connecting to account ******y@gm**l.com
2021-08-06 05:49:15 DEBUG (MainThread) [custom_components.jq300.api] Connecting to cloud server
2021-08-06 05:49:15 DEBUG (MainThread) [custom_components.jq300.api] Requesting URL http://www.youpinyuntai.com:32086/ypyt-api/api/app/loginByEmail
2021-08-06 05:49:19 DEBUG (MainThread) [custom_components.jq300.api] _query ret 200
2021-08-06 05:49:19 DEBUG (MainThread) [custom_components.jq300.api] Start connecting to cloud MQTT-server
2021-08-06 05:49:19 DEBUG (MainThread) [custom_components.jq300.api] Updating devices list for account ******y@gm**l.com
2021-08-06 05:49:19 DEBUG (MainThread) [custom_components.jq300.api] Requesting URL http://www.youpinyuntai.com:32086/ypyt-api/api/app/deviceManager
2021-08-06 05:49:20 DEBUG (Thread-20) [custom_components.jq300.api] Sending CONNECT (u1, p1, wr0, wq0, wf0, c1, k60) client_id=b'41068426_1628218159889'
2021-08-06 05:49:20 DEBUG (Thread-20) [custom_components.jq300.api] Received CONNACK (0, 0)
2021-08-06 05:49:20 DEBUG (Thread-20) [custom_components.jq300.api] Connected to MQTT
2021-08-06 05:49:20 DEBUG (Thread-20) [custom_components.jq300.api] Sending SUBSCRIBE (d0, m1) []
2021-08-06 05:49:20 DEBUG (MainThread) [custom_components.jq300.api] _query ret 200
2021-08-06 05:49:21 DEBUG (MainThread) [custom_components.jq300.binary_sensor] Setup binary sensors for account ******y@gm**l.com
2021-08-06 05:49:21 DEBUG (MainThread) [custom_components.jq300.api] Updating sensors state for account ******y@gm**l.com
2021-08-06 05:49:21 DEBUG (MainThread) [custom_components.jq300.api] Finished fetching ******y@gm**l.com device's sensors in 0.001 seconds
2021-08-06 05:49:21 DEBUG (MainThread) [custom_components.jq300.sensor] Setup sensors for account ******y@gm**l.com
2021-08-06 05:49:21 DEBUG (MainThread) [custom_components.jq300.api] Finished fetching ******y@gm**l.com device's sensors in 0.000 seconds
2021-08-06 05:49:21 DEBUG (Thread-20) [custom_components.jq300.api] Sending CONNECT (u1, p1, wr0, wq0, wf0, c1, k60) client_id=b'41068426_1628218159889'
2021-08-06 05:49:22 DEBUG (Thread-20) [custom_components.jq300.api] Received CONNACK (0, 0)
2021-08-06 05:49:22 DEBUG (Thread-20) [custom_components.jq300.api] Connected to MQTT
2021-08-06 05:49:22 DEBUG (Thread-20) [custom_components.jq300.api] Sending SUBSCRIBE (d0, m2) []
2021-08-06 05:49:23 DEBUG (Thread-20) [custom_components.jq300.api] Sending CONNECT (u1, p1, wr0, wq0, wf0, c1, k60) client_id=b'41068426_1628218159889'
2021-08-06 05:49:24 DEBUG (Thread-20) [custom_components.jq300.api] Received CONNACK (0, 0)
2021-08-06 05:49:24 DEBUG (Thread-20) [custom_components.jq300.api] Connected to MQTT
2021-08-06 05:49:24 DEBUG (Thread-20) [custom_components.jq300.api] Sending SUBSCRIBE (d0, m3) []
2021-08-06 05:49:24 INFO (MainThread) [custom_components.miwifi.device_tracker] New device 00:08:22:90:F1:FB (00:08:22:90:F1:FB) from 192.168.31.2
2021-08-06 05:49:25 DEBUG (Thread-20) [custom_components.jq300.api] Sending CONNECT (u1, p1, wr0, wq0, wf0, c1, k60) client_id=b'41068426_1628218159889'
2021-08-06 05:49:25 DEBUG (Thread-20) [custom_components.jq300.api] Received CONNACK (0, 0)
2021-08-06 05:49:25 DEBUG (Thread-20) [custom_components.jq300.api] Connected to MQTT
2021-08-06 05:49:25 DEBUG (Thread-20) [custom_components.jq300.api] Sending SUBSCRIBE (d0, m4) []

and repeats…
please help me with setup integration

Is anybody alive?

Any update?

I have set up my JQ-300 and got it working finally. Problem was - after set up you have to re-login into android application, otherwise integration won’t pull data from server!

I like the look of this, but need everything local and out of the cloud. This is why I use Home Assistant after all. Is that possible please?

Looks like problems on vendor’s side resolved
today i’ve seen sensors with data
@Limych thanks for great integration!

Answer already posted here: JQ-300/200/100 Indoor Air Quality Meter - #4 by Bit-River

Thanks.

What about this comment by you Limych?

“Or you have to hack device and fill in your firmware.”

Is there a known hack method please?

I think they banned me. Do you know if this is a ban for maybe a week, or forever? Any chance to get unbanned?

No, I doesn’t know any hack method. But, I know hack is possible.

It takes too much effort to do this hack. I think this is pointless for this device.

If you’re banned, there are only one chance to unban: just change public IP. Usually you just need to reboot your router through which you receive internet.

Hi, I bought the JQ-300 ages ago and am just trying to set it up. I downloaded their app on Android and created an account and got in. However when I go to put in my Wifi SSID and password, then submit it, it just blanks it out and puts me back on the same screen. I have a separate 2.4Ghz network which I’ve tried. I’ve tried lots of combinations.

It seems like maybe this device is just…not very good…which is believable given the price.

Any thoughts before I give up?

No chance, i have a fixed IP. A change is not possible…

Ah, maybe i am not banned. Do you know a website or ip to check the ban?
Currently the green LED is blinking in slow mode. That happens after loosing power. I tried so much, my 2,4 and 5 wifi lans also have differnet names. It seems, that it don’t find my wifi. I tried to reset the device, nothing happend. Maybe it is bricked or anything similar?

Anyone else have problem with PM2.5 values being almost constant? It always stays around 30, no matter what I do, while it goes from 0-200 on other monitors. I am using Perthings app.
And 2nd question: Is there a way to create notifications for values reaching certain thresholds?

Any thoughts on this all? I just tried again and get the same thing- perthings app won’t take ssid/pass