Hello,
I have a RPI connected to a Android via I2c. A couple of test cases seems to work well.
The sketch on the I2C slave (android) just parses a byte and does a writepin LOW or High (simulates a relay).
So I have defined
<< define Uno RPII2C 1 >>
and I can do
<<set Uno writeByte 4 5 // To activate relay 1 >>
<<set Uno writeByte 4 8 // To deactivate relay 2 >>
<<etc>>
This works fine.
My problem now is how should i define fhem devices that corresponds to each relay (at the end will have about 25 of them).
Tthey should act as "Lamps" so that they can be a part of a i.e fhem LightScene.
Any ideas?
/A newbie