Closed sebastienvg closed 9 years ago
Added a pin switch device to the plugin: https://github.com/pimatic/pimatic-homeduino#pin-switch-example
Could you update to the new version and test if it is working? You can also connect the relay board directly to the rpi with the pimatic-gpio plugin.
I cloned the new version and then added the following under devices section of the config.json
{
"id": "pin-switch",
"name": "Pin Switch",
"class": "HomeduinoSwitch",
"inverted": false,
"pin": 13
}
then I tried to add a simple rule to test
if it is after 7:00 then turn on pin-switch
but I get "Could not find a provider that provides turn on pin-switch (I also tried with "pin switch" without the dash). What am I doing wrong?
Ok I think I start to understand how that all thing work, I got the pin-switch in the mobil-front-end I'll keep on playing around! Thanks to everyone involve in this project.
What I was doing wrong. Well I removed the pimatic-homeduino folder and then cloned didn't work, I deleted again and instead of git I used npm install and this time it worked. I am still very new to pimatic in particular and nodejs in general (java(script)is a complete mystery)
Works great! Now how can I make it behave like a press button instead of an "On/Off" switch? And ideally be able to choose the delay it stays on. I read myself and I am sure these questions were already answered somewhere and I didn't read everything just yet.
Great :) Could you please post your last question in the pimatic issue section, because it is not related to this plugin.
I have a 8 relays board that I would like to hook to the arduino running the homeduino sketch, can it be driven this way or am I looking at edit the arduino sketch itself? Can any one point me in the direction? Maybe I am missing the point and the relay board should be setup differently ?