Closed xoseperez closed 6 years ago
Removing milestone: 1.11.0 (automated comment)
Released with 1.11.0
Original comment by laurinaitis (Bitbucket: laurinaitis, GitHub: laurinaitis):
thanks, now it will be much easier to update everything!!!
I have added all the common code to use up to 8 relays (and buttons and leds), and tested the MQTT groups funtionality. But I won't add the definitions for the two standard boards. Intead I have created a generic 8CH board with all available digital pins (except those for UART and SPI). This is the definition:
#elif defined(GENERIC_8CH)
// Info
#define MANUFACTURER "GENERIC"
#define DEVICE "8CH"
// Relays
#define RELAY1_PIN 0
#define RELAY1_TYPE RELAY_TYPE_NORMAL
#define RELAY2_PIN 2
#define RELAY2_TYPE RELAY_TYPE_NORMAL
#define RELAY3_PIN 4
#define RELAY3_TYPE RELAY_TYPE_NORMAL
#define RELAY4_PIN 5
#define RELAY4_TYPE RELAY_TYPE_NORMAL
#define RELAY5_PIN 12
#define RELAY5_TYPE RELAY_TYPE_NORMAL
#define RELAY6_PIN 13
#define RELAY6_TYPE RELAY_TYPE_NORMAL
#define RELAY7_PIN 14
#define RELAY7_TYPE RELAY_TYPE_NORMAL
#define RELAY8_PIN 15
#define RELAY8_TYPE RELAY_TYPE_NORMAL
Original comment by laurinaitis (Bitbucket: laurinaitis, GitHub: laurinaitis):
I (with a friend) want to control the supply of power to the sockets with these relays (relays will control magnetic contactors).
Agree. Right now those setting apply to all relays. Let me work on it.
Original comment by Guido Mersmann (Bitbucket: Geit_de, GitHub: Unknown):
Stupid question:
Do all relays have to be switches or pulsemode at the same time?
Even with the dual I ran into the issue that I need one in pulse mode and one in switch mode, which seems to be impossible with current espurna.
Having a 4ch or even 8ch sounds like a waste if you want just 2/2 or 4/4 switch/pulse variants and need two different devices.
Same goes for PowerOn Mode. There may be some lines to be powered on and some not. Maybe the settings on switch page should be converted in a per relay setting to boost flexibility.
Originally reported by: laurinaitis (Bitbucket: laurinaitis, GitHub: laurinaitis)
Hello Xose, I modified ESPURNA to work with 8-Channel Relay Module. Maybe you can include this in a standard package?You can comment on unnecessary relays. It would be much more convenient to update ESPURNA.
File: hardware.h
Also I tested MQTTgroups (Switch configuration), with 8 relays it does not work well, I do not really know where to look for a reason (I do not understand this place in your code).
Thank you very much for your excellent work!
Marius