Using the relay actuator example to light LED directly off the digital outputs?



  • Hey. I've successfully set up an energy pulse sensor talking via a gateway to a Raspberry pi (running Domoticz) (Yay!). While I can see the Watts data on Domoticz - I want to display some elements in a basic format. For example when watts is zero to light an LED on a remote display and When watts is greater than x to light a different LED.

    Looking at the relay actuator example - it seems I could pretty much use this code telling the arduino that it's controlling x "relays" and then running the led (and series resistor) off the digital output?

    Does domoticz pick up the fact that the hardware has x relays and allow me to then use blocky to logic which "relays" (ie LED) are activated etc?

    Thanks for the help!

    StKilda


Log in to reply
 

Suggested Topics

41
Online

11.2k
Users

11.1k
Topics

112.5k
Posts