Invert On/off switch

Moderator: leecollings

Post Reply
tapas
Posts: 16
Joined: Thursday 18 May 2017 23:25
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Invert On/off switch

Post by tapas »

Hi, is there a way to control On/off switch default status? I have an On/off switch that is connected to relay. Problem is simple: When relay is off, my button status is ON and vice versa. Because the default status of relay is OFF i'd like the switch also be OFF by default.

This might be very stupid question, but I can't figure out solution.. :shock: Any help will be appreciated!
marcin
Posts: 3
Joined: Friday 29 January 2016 22:11
Target OS: Raspberry Pi / ODroid
Domoticz version: 3,8755
Location: Częstochowa
Contact:

Re: Invert On/off switch

Post by marcin »

tapas wrote: Wednesday 07 June 2017 10:03 Hi, is there a way to control On/off switch default status? I have an On/off switch that is connected to relay. Problem is simple: When relay is off, my button status is ON and vice versa. Because the default status of relay is OFF i'd like the switch also be OFF by default.

This might be very stupid question, but I can't figure out solution.. :shock: Any help will be appreciated!

Have you found a solution?

Marcin.
mountainmannm
Posts: 10
Joined: Saturday 12 August 2017 6:48
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Invert On/off switch

Post by mountainmannm »

I have a similar problem. I have a couple of 8 channel in/out relay net cards. they work well, but the inputs are "open" when they are active and "closed" when inactive. I think these values come from the board, not Domoticz. I'd like to be able to change this to whatever I'd like, but I don't think it can be done.
snellejellep
Posts: 241
Joined: Tuesday 16 May 2017 13:05
Target OS: Raspberry Pi / ODroid
Domoticz version: 2020.2
Location: The Neterlands
Contact:

Re: Invert On/off switch

Post by snellejellep »

you could make a dummy switch and let that dummy send inverted commands to the "original" switch, you end up with two switches, one good and one inverted. it is not a really elegant solution but i think it will work fine.
raspberry pi | xiaomi vacuum | yeelight | philips hue | zwave | ubiquiti unifi | harmony | sonoff | zigbee2mqtt | https://www.youtube.com/channel/UC2Zidl ... m1OLuNldfQ
GeoBonas
Posts: 1
Joined: Friday 20 September 2019 19:16
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Invert On/off switch

Post by GeoBonas »

You must read https://www.domoticz.com/wiki/GPIO
Active low relays.
rodaman
Posts: 23
Joined: Tuesday 29 November 2016 16:17
Target OS: -
Domoticz version:

Re: Invert On/off switch

Post by rodaman »

GeoBonas wrote: Friday 20 September 2019 19:21 You must read https://www.domoticz.com/wiki/GPIO
Active low relays.
It will be a lot easier if that was an option in switch setup.
kenvn
Posts: 1
Joined: Saturday 01 February 2020 18:45
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Invert On/off switch

Post by kenvn »

I need also "contact inverted" and "doorcontact inverted".
My magnet contacts give contact when the door/windows are closed and no contact when door/window is opened. This is exact the opposite of what is programmed in domoticz...
User avatar
AlanGpio
Posts: 15
Joined: Monday 24 February 2020 21:40
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Invert On/off switch

Post by AlanGpio »

Similar situation. I have a Aux Power Supply that is linked to a GPIO on Rasp Pi. So the alarm state is when it goes Low. If I select an Alarm icon in Domoticz it is on red when normal and off when there is a power failure. Seems I either need a dummy switch or reconstruct (bodge!) my electronics with an inverter circuit. An Invert option in Domoticz would be easier and neater.

You can get active high relays. I just bought a module of 4 solid state ones on ebay (search "Solid State Relay Modules High Level Trigger" - some are 5v and some 12v and a mix of 2 to 8 modules). I drive them from the Pi via opt-couplers using the 5v Aux Power Supply
Hobbyist developing home automation on a Rasp Pi 4 under Buster off SSD.
Custom electronics to link to alarm system, doors, lights, cameras and door bell.
Running Domoticz in a Docker Container along with containers for Moquitto and Portainer.
Sherco49
Posts: 12
Joined: Saturday 24 March 2018 17:54
Target OS: Linux
Domoticz version:
Contact:

Re: Invert On/off switch

Post by Sherco49 »

Hi
I agree with a need ofan inverted contact type, the same way there is a Door Lock Inverted one.
Looks not to be a huge development, even if i agree it is alaways an amount of work
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests