Home Automation - Smartkit

You could get hold of a mercury switch and glue it inside a small plastic bottle. This can hang in your tank, and when it reaches the required level, it will go sideways, activating the switch.
Connect this to Pin 4 (Ground) and Pin 5 (GPIO14).
Configure the Sonoff-Tasmota basic unit as attached:

View attachment 577886
It is now a simple matter to set it up in Home Assistant.
YAML:
#In my sensors.yaml file, I added:
# MQTT binary sensors
  - platform: mqtt
    name: Pool Alarm
    state_topic: "cmnd/poolfence/POWER2"
    payload_on: “ON”
    payload_off: “OFF”

#switch on alarm if switch2 (GPIO14) is toggled.
- id: pool_alarm_triggered
  alias: Pool Alarm Triggered
  trigger:
    platform: state
    entity_id: sensor.pool_alarm
    to: 'ON'
  condition:
  - condition: state
    entity_id: input_boolean.pool_alarm_active
    state: 'on'
  action:
    entity_id: switch.pool_siren
    service: switch.turn_on

#switch off alarm and reset Switch2 state.
- id: pool_alarm_reset
  alias: Pool Alarm Reset
  trigger:
    platform: state
    entity_id: sensor.pool_alarm
    to: 'ON'
    for:
      minutes: 10
  action:   
    - service: switch.turn_off
      entity_id: switch.pool_siren
    - service: mqtt.publish
      data:
        topic: 'cmnd/poolfence/POWER2'
        payload: 'OFF'
        retain: 'true'

Thanks for this. I will have to investigate this further
 
I was planning to set up this exact thing. But I was going to use a wifi arduino thing with a water sensor. The arduino arrived from China but the sensor didn't yet...

Planning to hook it into my home assistant setup.

please share your progress
 
Guys is anyone using Home Assistant and know which Alarm system from SA will be able to interact with Home Assistant. Thanks
 
Guys is anyone using Home Assistant and know which Alarm system from SA will be able to interact with Home Assistant. Thanks
You can import an envisalink module that works with Dsc alarms. There's an HA plugin for it.
 
Guys is anyone using Home Assistant and know which Alarm system from SA will be able to interact with Home Assistant. Thanks

Hi there. I have a Paradox SP6000 and developed an Arduino sketch that integrates with the alarm interfacing to the serial port on the main alarm board. Running it on a D1 Mini Pro. It is using MQTT as the underlying protocol.
 
Hi there. I have a Paradox SP6000 and developed an Arduino sketch that integrates with the alarm interfacing to the serial port on the main alarm board. Running it on a D1 Mini Pro. It is using MQTT as the underlying protocol.

Is that the ParadoxRs232toMqtt based one we discussed before? I've been fighting with that thing forever but I'm now convinced the problem is actually the WeMos R3 I've been using.

Starting to think maybe a D1 would be the solution.
 
I am going to steal that mercury switch idea...
The Sonoff Basic can handle 3 inputs (Rx, Tx, and GPIO14), by having 3 switches at different lengths, you can have indicators for empty, half and full.
 
The Sonoff Basic can handle 3 inputs (Rx, Tx, and GPIO14), by have 3 switches at different lengths, you can have indicators for empty, half and full.
I've got 5 WeMos NodeMCUs sitting at home ... Sonoff is overkill :)
 
Calling all Sonoff experts. I want to do something with a Sonoff switch and I don't know if this is possible

My borehole fills my water tank until a float switch turns it off based on how high the water level inside the tank is. It works 99.9% of the time. In that other 0.1% of the time it doesn't switch it off and the tank overflows.

I was thinking to rig something up at the overflow where the outflowing water will bridge two copper contacts and that triggers an action in a Sonoff which then pushes a notification to me and/or switch off power to the submersible pump. I could probably replace the float switch but this seems like a nice December holiday project.

I googled around and found this post about a guy who managed to create an input on a Sonoff (not sure which model that is), so it should be possible:
https://www.instructables.com/id/Sonoff-Garage-Door-Opener/

I was wondering if the Sonoff TH models might work better for integration with the eWeLink app (which I use for all my other sonoffs). Seeing as it already has an input sensor which could probably be cut to register an open or closed contact (which the water will create). I would really like it if a notification could be pushed to an app.

Would love to hear some ideas on this, even if you think Sonoff is not the way to go. I like tinkering and know how to solder so I am open to a challenge

thanks
Why not just get a level switch.
 
Is that the ParadoxRs232toMqtt based one we discussed before? I've been fighting with that thing forever but I'm now convinced the problem is actually the WeMos R3 I've been using.

Starting to think maybe a D1 would be the solution.

I think it is that one. I’ve put my version of it on Github if you want to take a look. I still want to do more refactoring but will leave that for another day.

Search for ipodmusicman/paradox-controller
 
I think it is that one. I’ve put my version of it on Github if you want to take a look. I still want to do more refactoring but will leave that for another day.

Search for ipodmusicman/paradox-controller

Lekker will check it out later and probably pester you like a noob later.

Out of interest if it’s not connected to the Paradox at all should it send MQTT of some nature?

Cause with the R3 I get no MQTT at all.
 
Lekker will check it out later and probably pester you like a noob later.

Out of interest if it’s not connected to the Paradox at all should it send MQTT of some nature?

Cause with the R3 I get no MQTT at all.

It does send status messages but I really haven’t focused on that for now.
 
It does send status messages but I really haven’t focused on that for now.

Yeah I would expect it to say "****, nothing is connect or I can't find your alarm system" but it's dead silent.

So I can only think something with the R3 interface is confusing the issue.

I get the AP to show up, connect to it and join it to my network and after that it goes silent.

****

Does yours interface directly with Home Assistant?

What does the HA config side look like?
 
I think it is that one. I’ve put my version of it on Github if you want to take a look. I still want to do more refactoring but will leave that for another day.

Search for ipodmusicman/paradox-controller

Out of interest, have you tried connecting a esp device and the IP module. I had this setup and it just seemed to corrupt the data lines. Seems like you can only have one connected at a time. Makes sense but wondering if its possible to have both
 
Top
Sign up to the MyBroadband newsletter
X