Having trouble setting up monitoring of simple GPIOs

User avatar
kw123
Posts: 8705
Joined: Sun May 12, 2013 4:44 pm
Location: Dallas, TX
Contact:

Re: Having trouble setting up monitoring of simple GPIOs

Post by kw123 »

Jody,

please try this version: https://www.dropbox.com/s/zfnlb195573iu ... n.zip?dl=0

it has a state "onOffState", it is True/False
all logical device with state INPUT_.. and status up/down have it now ( GPIO INPUT, input touch, ... beacon, BLEconnect, rpi ..)

the other plugins might like to use that state.

The Output GPIO is a indigo dimmer device type that has the onOffState building in by indigo. that is why it shows up in the selection of the other plugins

Karl


the cynical plugin has a selection in the menu:

Code: Select all

	def generate(self):
		sensors = [io.id for io in indigo.devices.iter("indigo.sensor")]  <<<<  ==== this  might still exclude it ==> set loose devices = true in config
		loose = cyin.plugin.loosedevices
		for io in indigo.devices.iter():
			# special deal for I/O-Linc devices (cyin makes them look like sensors)
			if io.protocol == indigo.kProtocol.Insteon and io.model.startswith("I/O-Linc"):
				yield cyin.device(io.id).filter_clause()
			if "onOffState" in io.states:  <<<========= pibeacon INPUT devices now have that state!!!
				if loose or io.id in sensors:
					yield cyin.device(io.id).filter_clause()
you will need to set loose devices = true in that plugin config.

Karl
cuhouse
Posts: 151
Joined: Wed Feb 21, 2007 4:10 pm
Location: Virginia, USA

Re: Having trouble setting up monitoring of simple GPIOs

Post by cuhouse »

Karl,

Works like you expected! I was able to remove the virtual garage door sensor and the Cynical plugin was able to find the piBeacon sensor without issue. Thanks for looking into this and solving it.

Also thanks again for all your support to the plugins you provide.

Jody
Indigo 2024.1, Monterey v12.7.6, Dedicated late 2014 Mac Mini, PowerLinc 2413U, Shelly/ShellyNG, Lutron Caséta Smart Bridge PRO (L-BDGPRO2-WH).
User avatar
kw123
Posts: 8705
Joined: Sun May 12, 2013 4:44 pm
Location: Dallas, TX
Contact:

Re: Having trouble setting up monitoring of simple GPIOs

Post by kw123 »

Thanks for your feedback

very much appreciated.

Karl


Sent from my iPhone using Tapatalk
cuhouse
Posts: 151
Joined: Wed Feb 21, 2007 4:10 pm
Location: Virginia, USA

Re: Having trouble setting up monitoring of simple GPIOs

Post by cuhouse »

Karl,
Do you use the HomeKit Bridge plugin to monitor your piBeacon inputs? If so, does a HomeKit device using a standard contact follow the status of the device in Indigo?
Thanks,
Jody
Indigo 2024.1, Monterey v12.7.6, Dedicated late 2014 Mac Mini, PowerLinc 2413U, Shelly/ShellyNG, Lutron Caséta Smart Bridge PRO (L-BDGPRO2-WH).
User avatar
kw123
Posts: 8705
Joined: Sun May 12, 2013 4:44 pm
Location: Dallas, TX
Contact:

Having trouble setting up monitoring of simple GPIOs

Post by kw123 »

No home bridge == don’t have one don’t know how it works

But since you ask I might look into it.


Sent from my iPhone using Tapatalk
cuhouse
Posts: 151
Joined: Wed Feb 21, 2007 4:10 pm
Location: Virginia, USA

Re: Having trouble setting up monitoring of simple GPIOs

Post by cuhouse »

Karl,
The HomeKit Brigde plug-in by Colorado works great. I like it as an option to Indigo Touch. My family uses HomeKit more. I guess because of the integrated notifications and the Siri option.

I was able to do a work around for my contact devices that use PiBeacon Input devices. I set up Virtual On/Off devices for the ones I want to work on HomeKit. It is kind a a kludge as it requires actions, triggers and a variable for each. It works though. My problem will be later on when I can’t remember why I did that and how did I do it. :lol:

If you try out HomeKit Bridge, let me know if you are able to monitor a PiBeacon input device directly. The PiBeacon output does. Like how it worked right off with the Cynical Garage Door plug-in. Maybe I am just setting something up incorrectly?

Thanks,
Jody
Indigo 2024.1, Monterey v12.7.6, Dedicated late 2014 Mac Mini, PowerLinc 2413U, Shelly/ShellyNG, Lutron Caséta Smart Bridge PRO (L-BDGPRO2-WH).
User avatar
kw123
Posts: 8705
Joined: Sun May 12, 2013 4:44 pm
Location: Dallas, TX
Contact:

Re: Having trouble setting up monitoring of simple GPIOs

Post by kw123 »

I guess I need to add another state that home bridge is looking for. ( some on off state)

Will spend some time on it.


Sent from my iPhone using Tapatalk
Post Reply

Return to “piBeacon”