Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Plugin for TE AmbiMate MS4 multi-sensor #127

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

bkpsu
Copy link

@bkpsu bkpsu commented Feb 6, 2019

Adding TE AmbiMate MS4 multi-sensor plugin (Temp/Humidity/Light/Motion/CO2/VOC/Audio)

https://www.te.com/global-en/product-CAT-AM16-M8797.html

BK Hobby added 3 commits February 5, 2019 23:06
… every 1 sec for better response), all other sensors are adjustable for time.

This plugin will only read Temp/Humidity/Light and PIR sensor right now. For CO2/VOC/Audio level, I will either make a new plugin, or allow selection of sensors on the web config page.
@bkpsu
Copy link
Author

bkpsu commented Feb 17, 2019

Plugin has been tested against the latest ESPEasy release, and is working well! Tested with my Kube v2 (prototype livestream including testing here: https://youtu.be/eWV52eQ6LFQ)

}

// 100ms delay
delayBackground(100);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why a delay here?
See the code of BME280 to get an idea of letting the plugin reschedule itself to be read when the sensor should be ready to give the processed values.
Delay will block the ESP to do other tasks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants