Comments (11)
Hi there, what model device do you have?
I believe this is possible to add, but it is somewhat complicated because:
- I don't have a device that reports this, so I'd need your help to test.
- @shenxn 's libdyson doesn't currently support this field, so this needs to be updated first. I can likely help with this as I don't think it's super difficult.
What would be helpful to start would be a full debug log with a few samples of the hcho/hchr fields.
from prometheus-dyson.
Hi it's a TP-09
https://www.dyson.com/air-treatment/purifiers/dyson-purifier-cool-formaldehyde-tp09/dyson-purifier-cool-formaldehyde-overview-tp09
2021/06/21 08:39:57 [548361592848] INFO Starting up on port=8091
2021/06/21 08:39:57 [548361592848] INFO Reading "config.ini"
2021/06/21 08:39:57 [548361592848] INFO Starting discovery...
2021/06/21 08:39:57 [548361592848] INFO Attempting to discover device "Schlafzimmer" (serial=K3G-EU-PDA2222A) via zeroconf
2021/06/21 08:39:57 [548323983840] INFO Discovered K3G-EU-PDA2222A on 10....
2021/06/21 08:39:58 [548315591136] DEBUG Connected with result code 0
2021/06/21 08:39:58 [548323983840] INFO Connected to device K3G-EU-PDA2222A
2021/06/21 08:39:58 [548315591136] DEBUG New state: {'msg': 'CURRENT-STATE', 'time': '2021-06-21T06:39:59.000Z', 'mode-reason': 'PRC', 'state-reason': 'MODE', 'rssi': '-46', 'channel': '11', 'fqhp': '90760', 'fghp': '77400', 'product-state': {'fpwr': 'ON', 'auto': 'ON', 'oscs': 'IDLE', 'oson': 'ON', 'nmod': 'OFF', 'rhtm': 'ON', 'fnst': 'OFF', 'ercd': 'NONE', 'wacd': 'NONE', 'nmdv': '0004', 'fnsp': 'AUTO', 'bril': '0002', 'corf': 'ON', 'cflr': 'INV', 'hflr': '0098', 'cflt': 'SCOF', 'hflt': 'GCOM', 'sltm': 'OFF', 'osal': '0152', 'osau': '0242', 'ancp': 'CUST', 'fdir': 'ON'}, 'scheduler': {'srsc': '0000000060ca55de', 'dstv': '0001', 'tzid': '0001'}}
2021/06/21 08:39:58 [548315591136] DEBUG Received update from K3G-EU-PDA2222A: MessageType.STATE
2021/06/21 08:39:58 [548315591136] DEBUG New environmental state: {'msg': 'ENVIRONMENTAL-CURRENT-SENSOR-DATA', 'time': '2021-06-21T06:39:59.000Z', 'data': {'tact': '2951', 'hact': '0053', 'pm25': '0001', 'pm10': '0001', 'va10': '0006', 'noxl': '0002', 'p25r': '0002', 'p10r': '0002', 'hcho': '0000', 'hchr': '0000', 'sltm': 'OFF'}}
2021/06/21 08:39:58 [548315591136] DEBUG Received update from K3G-EU-PDA2222A: MessageType.ENVIRONMENTAL
2021/06/21 08:39:58 [548315591136] DEBUG New environmental state: {'msg': 'ENVIRONMENTAL-CURRENT-SENSOR-DATA', 'time': '2021-06-21T06:39:59.000Z', 'data': {'tact': '2951', 'hact': '0053', 'pm25': '0001', 'pm10': '0001', 'va10': '0006', 'noxl': '0002', 'p25r': '0002', 'p10r': '0002', 'hcho': '0000', 'hchr': '0000', 'sltm': 'OFF'}}
2021/06/21 08:39:58 [548315591136] DEBUG Received update from K3G-EU-PDA2222A: MessageType.ENVIRONMENTAL
2021/06/21 08:40:28 [548306936288] DEBUG Requesting updated environmental data from K3G-EU-PDA2222A
2021/06/21 08:40:28 [548315591136] DEBUG New environmental state: {'msg': 'ENVIRONMENTAL-CURRENT-SENSOR-DATA', 'time': '2021-06-21T06:40:29.000Z', 'data': {'tact': '2951', 'hact': '0053', 'pm25': '0001', 'pm10': '0001', 'va10': '0006', 'noxl': '0002', 'p25r': '0002', 'p10r': '0002', 'hcho': '0000', 'hchr': '0000', 'sltm': 'OFF'}}
2021/06/21 08:40:28 [548315591136] DEBUG Received update from K3G-EU-PDA2222A: MessageType.ENVIRONMENTAL
from prometheus-dyson.
Apologies for the delay in responding; I've been pretty busy elsewhere lately. :-)
Thanks for that the log entry. I'm assuming you ran config_builder
to generate a config? Can you provide the ProductType
it discovered? (from your config.ini)
There was a change to support type 527E here: shenxn/libdyson#9 and I'm wondering if this model differentiates itself by having the Formaldehyde sensors.
from prometheus-dyson.
Unfortunately not - 527E does not have the formaldehyde sensor. The one with the formaldehyde sensor is yet another model.
from prometheus-dyson.
Ping @kaiherzig ?
Can't proceed without the information requested above -- so the other option is to close the issue.
from prometheus-dyson.
from prometheus-dyson.
Sorry for the delay.
producttype = 438E
from prometheus-dyson.
Thanks @kaiherzig, looks like libdyson has partial support for 438E which is why it sort of works for you.
I created a PR for libdyson to wire through the formaldehyde metrics: shenxn/libdyson#12 which is the first step to support in this code.
from prometheus-dyson.
Update: this is ready for testing. I just released 0.3.1 which should plumb through the formaldehyde metric from libdyson.
Will you let me know if it works for you?
from prometheus-dyson.
Looks good :)
It's working.
from prometheus-dyson.
Great news :) Thanks for filing the issue & testing the change 👍
from prometheus-dyson.
Related Issues (10)
- Found device but is not active HOT 16
- Value reported for Volatile Organic Compounds (VOC) appears to be ~10x that of the native dyson app HOT 5
- Feature Request: If possible add the Air Quality Index (AQI) metric HOT 3
- ValueError: 'IDLE' is not in list HOT 4
- AttributeError: 'DysonPureHotCoolV2State' object has no attribute 'fan_mode' HOT 4
- --create_device_cache doesn't facilitate startup. HOT 5
- config_builder SSL issues with dyson API HOT 6
- Unable to verify OTP in config_builder in version 0.3.3 HOT 1
- AttributeError: 'NoneType' object has no attribute 'publish'
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from prometheus-dyson.