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 support for DFR0300 EC sensor #397

Closed
wants to merge 18 commits into from
Closed

Conversation

linucks
Copy link
Contributor

@linucks linucks commented Aug 5, 2024

This adds support for the DFRobot EC sensor.

In order to give an accurate reading, the EC sensor requires the current temperature. This PR also adds the EventBus argument to the setup_sensor function, so that sensors can query the event bus and read the value of other sensors. This has required changing the setup_sensor call for all sensors.

For the sensor to function properly, it needs to be plugged into an ADC. The DFRobot DRF0566 HAT has the correct connectors and an integral ADC, so this PR includes the addition of the code for the HAT and the ADC in the mqtt_io/modules/sensor/drivers folder. This is added separately so that it can be used by other sensors as there are many sensors from DFRobot that could be added trivially using this driver.

@linucks linucks closed this Sep 3, 2024
@linucks linucks deleted the dfr0300 branch September 3, 2024 16:38
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.

1 participant