I'm sorry but this type of question annoys me. We're ALL time poor but you expect us to research all this for you without giving us a lot of information.
How far is it from the beam to Sonoff B?
If the beam is mains powered, why can't you run an extra core to the beam (so that the light or Sonoff B can be triggered direct)?
What output does BlueIris software give?
Is the PC on all the time and what OS is it running?
Sonoffs are quite powerful but you're asking a lot without using external intelligence (the PC). If you move away from EweLink you're almost certainly going to have to set up an MQTT broker and something like openHAB. openHAB has got a lot simpler with the Rules Engine but you will need to spend time setting it up. openHAB can probably do what you want to do (it can receive the camera signal, dispay it and control the cameras) without using BlueIris but you'll need to spend time on it. There's an oldish post https://community.openhab.org/t/blue-iris-integration-http-binding-rest-api/10838 on how to integrate BlueIris with openHAB.
Help us to help you.
Regards
Phil K
That helps. So the beam runs off 12V and gives you a volt-free contact? You can then connect that directly to a GPIO on a Sonoff (no need for Sonoff A). If you flash the Sonoff with Tasmota you can then create a Rule which says turn on light for 2 minutes when GPIO is triggered. You can then create an HTTP post in BlueIris which tells the same Sonoff to turn on when Blue Iris is triggered http://192.168.0.xxx/cm?cmnd=Backlog%20Power1%20On;%20Delay%20120;Power1%20Off. Again that will turn on the light for 2 minutes.
If you have a Sonoff TH10 you can connect the beam via the temperature jack socket (2.5mm 4 pole) between ring2 and the tip (https://github.com/arendst/Sonoff-Tasmota/wiki/GPIO-Locations) which will ground GPIO14 when the beam is operated. In the module configuration select Switch for GPIO14.
Hope that helps
Phil K
Sent from Mail for Windows 10
From: peter zwag
Sent: 04 August 2018 07:11
To: Philip Knowles
Subject: Re: sonoff to transmit to a receiving sonoff, blue iris camerasoftware.
Hi Philip,
thank you so much for the reply
Sorry if my question annoyed, but the time poor implies not keen to go complex and powerfull solutiions if a simple one will do.
The beam is 10 meters from sonoffB, and its run via at cat5 cable with 12 volt supply. Relay not designed for 240 volts
Im not sure how to run a sonoff th12 for example to trigger off a switch from the beam.
to use a 12 volt relay to mains is not legal for me to wire.
blue iris can run exe and or do http / https. Likely I can get any exe that needs be written via a programer
pc on all the time. windows 7
I have seen the sonoff can be driven by http://ip/turnonlight etc and that could be 1/2 the requirement.
What I dont know is how one sonoff can drive another in this mode.
If this can be done, it will save be mqtt and openhab etc. I know nothing about these yet, so trying to avoid going down this path if the simple path will don
Thanks for the blue iris link.
Peter
Not wanting to contradict but you don't need MQTT to send information TO the Sonoff only FROM the Sonoff. You can send all the commands via http so he can create a http post from BlueIris to control the Sonoff and, provided there is a volt-free contact from the beam, he can use GPIO to trigger a rule to control it from there.
Regards
Phil K
--
You received this message because you are subscribed to the Google Groups "SonoffUsers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to sonoffusers+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
To unsubscribe from this group and stop receiving emails from it, send an email to sonoffusers...@googlegroups.com.