PoJD / hawa

Home Automation Web Application - no longer active, will work on can-backend instead (based on can)
MIT License
3 stars 4 forks source link

Generic support for I2C + expander chips support #8

Closed PoJD closed 10 years ago

PoJD commented 10 years ago

Right now only one sensor uses I2C, but that will change soon once the expander chips arrive. Then I will need to connect the relays through them and they will need some I2C setup code too. So refactor the current sensor generic code out (similar as Gpio) and control from one place only (including closing on spring context closing).

Use this new base logic to manipulate the expander chips and be able to control or read stuff through them

PoJD commented 10 years ago

Not really needed the generic support for I2C since it is all wrapped inside the gpio extension, so refactored the whole code to use expanded chips and set proper motion sensors, light switches and controls for all rooms