Home Automation - Smartkit

bwana

MyBroadband
Super Moderator
Joined
Feb 23, 2005
Messages
83,164
This thing (posting on iPad, scuse the kak link)

Ok - the pump has one of those. At the moment the pump is connected to the washing machine via a long length of garden hose and my biggest worry is a leak. I'd feel more comfortable switching off the pump and night and on days we're not doing laundry.

That will change when we run out of water here and have to run the house off the water tanks.
 

Saba'a

Executive Member
Joined
May 21, 2009
Messages
6,777
If you have an old phone, you could use it as a light sensor.

Otherwise , overseas?

I run mines on sunset routines with some randomness thrown into it for good measure. Don't want my outside lights coming on if it gets dark because of rain at say 9am. That to me , is a giveaway that it's connected to a day night switch if thieves are scoping property. I'd rather have someone think I am manually turning lights on.
Thanks have old phone. Will google it. But prefer dedicated device. Will check out smart relay plus light sensor.
 

jdido87

Expert Member
Joined
Nov 10, 2014
Messages
1,162
If you have an old phone, you could use it as a light sensor.

Otherwise , overseas?

I run mines on sunset routines with some randomness thrown into it for good measure. Don't want my outside lights coming on if it gets dark because of rain at say 9am. That to me , is a giveaway that it's connected to a day night switch if thieves are scoping property. I'd rather have someone think I am manually turning lights on.
This, one of my houses was standing vacant for 6 months last year and the neighbours thought that there was someone living there. The house has smart switches which was on a schedule.
 

acp

Well-Known Member
Joined
Aug 6, 2007
Messages
425
Might have been mentioned, but can't find anything on the thread.

Anyone with experience of the Sonoff SNZB-03 ZigBee motion sensors?

They work rather well, but one glaring issue is that their refractory/refresh/cooldown time is about 60 seconds, making them pretty much unusable for detecting and maintaining presence in a high-traffic room like a kitchen.

Bought a bunch in order for playrooms, kitchens, guest loos to lights-out when no-one's present. Contact sensor for bathroom door is probably an option, but (some) kids rarely close the door properly behind them.

Similar issues on some international forums, but curious to know if anyone here has figured out a way, sequence, scene to deal with this.

Other than that, my SNZB-01, 02, 04's are all working great. Using via Sonoff ZigBee bridge.
 

ebendl

Expert Member
Joined
Sep 27, 2004
Messages
4,434
This, one of my houses was standing vacant for 6 months last year and the neighbours thought that there was someone living there. The house has smart switches which was on a schedule.
I use Occupancy simulator in Home Assistant. Same idea, but introduces a realistic random element into the mix.

E.g. instead of turning on lights 6:00 every morning, sometimes it turns it on 5:55 and sometimes it turns it on 6:03. Never the same every morning.

And then between dark and say ~22:00, it will turn the bathroom light on for anything between 1 and 20 minutes. And it will do this anywhere between 1 and 5 times a night.

Here's a writeup (not mine): Keeping Baddies Away with Occupancy Simulation and Home Assistant (webworxshop.com)
 

jdido87

Expert Member
Joined
Nov 10, 2014
Messages
1,162
I use Occupancy simulator in Home Assistant. Same idea, but introduces a realistic random element into the mix.

E.g. instead of turning on lights 6:00 every morning, sometimes it turns it on 5:55 and sometimes it turns it on 6:03. Never the same every morning.

And then between dark and say ~22:00, it will turn the bathroom light on for anything between 1 and 20 minutes. And it will do this anywhere between 1 and 5 times a night.

Here's a writeup (not mine): Keeping Baddies Away with Occupancy Simulation and Home Assistant (webworxshop.com)
I might do this at my own house. I recently started playing around with HA. Still finding my feet :ROFL::ROFL::ROFL:
 

ebendl

Expert Member
Joined
Sep 27, 2004
Messages
4,434
I might do this at my own house. I recently started playing around with HA. Still finding my feet :ROFL::ROFL::ROFL:
This one is a bit harder, TBH, because it runs on AppDaemon which is a python-app-add-on for Home Assistant that you need to get going first. And then the way that you schedule everything in Occupancy Simulator is also a bit weird.

Also, you do kinda need to have lights etc. working in HA to actually simulate occupants in a house.

But yeah, pretty cool. Every night it runs at 3:00 and figures out a "schedule" for the day (it does this even though the "vacation switch" is off -- so it won't affect anything tonigh).

Code:
2021-05-14 03:00:00.118307 INFO Occupancy Simulator: Morning: @ 2021-05-14 06:06:34
2021-05-14 03:00:00.121009 INFO Occupancy Simulator: Leave for school: @ 2021-05-14 07:10:42
2021-05-14 03:00:00.123789 INFO Occupancy Simulator: Evening: @ 2021-05-14 17:28:12
2021-05-14 03:00:00.125611 INFO Occupancy Simulator: Random Bathroom_on_3: @ 2021-05-14 17:28:59
2021-05-14 03:00:00.128401 INFO Occupancy Simulator: Random Bathroom_off_3: @ 2021-05-14 17:42:44
2021-05-14 03:00:00.131748 INFO Occupancy Simulator: Random Bathroom_on_4: @ 2021-05-14 17:47:30
2021-05-14 03:00:00.134280 INFO Occupancy Simulator: Random Bathroom_off_4: @ 2021-05-14 17:57:50
2021-05-14 03:00:00.136940 INFO Occupancy Simulator: Random TV_on_1: @ 2021-05-14 17:59:12
2021-05-14 03:00:00.141187 INFO Occupancy Simulator: Random Patio_on_0: @ 2021-05-14 18:07:16
2021-05-14 03:00:00.144327 INFO Occupancy Simulator: Random Patio_off_0: @ 2021-05-14 18:19:19
2021-05-14 03:00:00.147612 INFO Occupancy Simulator: Random TV_off_1: @ 2021-05-14 18:26:29
2021-05-14 03:00:00.150785 INFO Occupancy Simulator: Random Garage_on_0: @ 2021-05-14 18:30:38
2021-05-14 03:00:00.153578 INFO Occupancy Simulator: Random Garage_off_0: @ 2021-05-14 18:35:01
2021-05-14 03:00:00.155982 INFO Occupancy Simulator: Random Patio_on_1: @ 2021-05-14 18:41:26
2021-05-14 03:00:00.158387 INFO Occupancy Simulator: Baby goes to bed: @ 2021-05-14 18:56:46
2021-05-14 03:00:00.160891 INFO Occupancy Simulator: Random Patio_off_1: @ 2021-05-14 19:00:49
2021-05-14 03:00:00.163428 INFO Occupancy Simulator: Random Garage_on_2: @ 2021-05-14 19:01:48
2021-05-14 03:00:00.166046 INFO Occupancy Simulator: Random Garage_off_2: @ 2021-05-14 19:05:35
2021-05-14 03:00:00.168874 INFO Occupancy Simulator: Random Garage_on_1: @ 2021-05-14 19:24:35
2021-05-14 03:00:00.172031 INFO Occupancy Simulator: Random Bathroom_on_1: @ 2021-05-14 19:34:18
2021-05-14 03:00:00.175820 INFO Occupancy Simulator: Kids go to bed: @ 2021-05-14 19:35:22
2021-05-14 03:00:00.178948 INFO Occupancy Simulator: Random Garage_off_1: @ 2021-05-14 19:40:52
2021-05-14 03:00:00.181594 INFO Occupancy Simulator: Random Bathroom_off_1: @ 2021-05-14 19:48:07
2021-05-14 03:00:00.184296 INFO Occupancy Simulator: Random bedroom_on_2: @ 2021-05-14 19:57:02
2021-05-14 03:00:00.186923 INFO Occupancy Simulator: Random bedroom_off_2: @ 2021-05-14 20:15:10
2021-05-14 03:00:00.189420 INFO Occupancy Simulator: Random bedroom_on_1: @ 2021-05-14 20:29:46
2021-05-14 03:00:00.192240 INFO Occupancy Simulator: Random bedroom_off_1: @ 2021-05-14 20:56:58
2021-05-14 03:00:00.196127 INFO Occupancy Simulator: Random TV_on_2: @ 2021-05-14 21:01:10
2021-05-14 03:00:00.198981 INFO Occupancy Simulator: Random TV_on_0: @ 2021-05-14 21:01:39
2021-05-14 03:00:00.201947 INFO Occupancy Simulator: Random TV_off_2: @ 2021-05-14 21:05:54
2021-05-14 03:00:00.205303 INFO Occupancy Simulator: Random Bathroom_on_2: @ 2021-05-14 21:07:20
2021-05-14 03:00:00.208882 INFO Occupancy Simulator: Random bedroom_on_0: @ 2021-05-14 21:07:52
2021-05-14 03:00:00.211891 INFO Occupancy Simulator: Random Bathroom_off_2: @ 2021-05-14 21:24:56
2021-05-14 03:00:00.214919 INFO Occupancy Simulator: Random TV_off_0: @ 2021-05-14 21:25:17
2021-05-14 03:00:00.217847 INFO Occupancy Simulator: Random bedroom_off_0: @ 2021-05-14 21:28:18
2021-05-14 03:00:00.221333 INFO Occupancy Simulator: Random outside_toilet_on_0: @ 2021-05-14 21:30:53
2021-05-14 03:00:00.223908 INFO Occupancy Simulator: Random outside_toilet_off_0: @ 2021-05-14 21:35:43
2021-05-14 03:00:00.226685 INFO Occupancy Simulator: Wifesleep: @ 2021-05-14 22:08:29
2021-05-14 03:00:00.229078 INFO Occupancy Simulator: Random Bathroom_on_0: @ 2021-05-14 22:25:11
2021-05-14 03:00:00.231407 INFO Occupancy Simulator: Ebensleep: @ 2021-05-14 22:33:26
2021-05-14 03:00:00.233801 INFO Occupancy Simulator: Random Bathroom_off_0: @ 2021-05-14 22:33:26
 

Jacques van Eeden

New Member
Joined
Nov 17, 2018
Messages
6
Does the API exist? Last i heard they were still working on it but haven't seen anything

They opened it. Currently a BETA release.

API Documentation

Requests
The Olarm API can be accessed by sending requests over HTTP using GET and POST methods.

Base URL


API Key
The key can be passed in an authorization header.

Authorization: Bearer APIKEY
Alternatively it can also be passed in the URL query.


Responses
The http status code indicates the result of the request. Response data is returned as JSON and details with examples can be found for each endpoint further down on this page. In the case of a 400 status code, the response body JSON will contain a list of errors associated with the bad request.

HTTP response status codes
200:OK - The request is successful.

400:Bad request - Validation of one or more body / query parameters failed.

403:Forbidden - Failed authorisation / access denied.

404:Not found - The requested resource could not be found / does not exist.

500:Internal server error.

Endpoints
Each endpoint is documented with examples. Refer to the Object Model reference where more detailed information related to request / response data is required.

METHOD
ENDPOINT
USAGE
GET
/devices
Get devices
GET
/devices/{deviceId}
Get a device
POST
/devices/{deviceId}/actions
Send Action to Device
GET
/devices/{deviceId}/actions
Get Device Actions
GET
/devices/{deviceId}/events
Get Device Events
 

fxit_man

Executive Member
Joined
Sep 16, 2006
Messages
6,417
They opened it. Currently a BETA release.

API Documentation

Requests
The Olarm API can be accessed by sending requests over HTTP using GET and POST methods.

Base URL


API Key
The key can be passed in an authorization header.

Authorization: Bearer APIKEY
Alternatively it can also be passed in the URL query.


Responses
The http status code indicates the result of the request. Response data is returned as JSON and details with examples can be found for each endpoint further down on this page. In the case of a 400 status code, the response body JSON will contain a list of errors associated with the bad request.

HTTP response status codes
200:OK - The request is successful.

400:Bad request - Validation of one or more body / query parameters failed.

403:Forbidden - Failed authorisation / access denied.

404:Not found - The requested resource could not be found / does not exist.

500:Internal server error.

Endpoints
Each endpoint is documented with examples. Refer to the Object Model reference where more detailed information related to request / response data is required.

METHOD
ENDPOINT
USAGE
GET
/devices
Get devices
GET
/devices/{deviceId}
Get a device
POST
/devices/{deviceId}/actions
Send Action to Device
GET
/devices/{deviceId}/actions
Get Device Actions
GET
/devices/{deviceId}/events
Get Device Events
Did you manage to do anything with this?
 

furpile

Expert Member
Joined
Jul 14, 2014
Messages
3,512
I have an issue with one of my Sonoff SV's that I connected to the garage. It keep going offline like in the picture below.
1622526273079.png
If I disconnect the power and connect it again it starts up and connects, but after an hour or so it starts going offline again until it just stays offline. The SV on the gate is always available, and the wifi AP is between the 2, so I don't think it is losing wifi access. I am wondering if the power supply coming from the Xtrac garage opener is not consistent? It has 24V DC output. Should I add a separate power supply for the SV? Again, the one on the gate is happily running off the power provided by the Centurion D5.
 

fxit_man

Executive Member
Joined
Sep 16, 2006
Messages
6,417
I have an issue with one of my Sonoff SV's that I connected to the garage. It keep going offline like in the picture below.
View attachment 1080935
If I disconnect the power and connect it again it starts up and connects, but after an hour or so it starts going offline again until it just stays offline. The SV on the gate is always available, and the wifi AP is between the 2, so I don't think it is losing wifi access. I am wondering if the power supply coming from the Xtrac garage opener is not consistent? It has 24V DC output. Should I add a separate power supply for the SV? Again, the one on the gate is happily running off the power provided by the Centurion D5.
Did you try running a separate 2.4ghz only network for the Sonoffs
 

furpile

Expert Member
Joined
Jul 14, 2014
Messages
3,512
Did you try running a separate 2.4ghz only network for the Sonoffs
No, only one network with a few AP's around the house. Works well for cellphones etc. Don't have many devices on the network yet, only 5 or 6 wifi switches at this stage.
 

Rocket-Boy

Executive Member
Joined
Jul 31, 2007
Messages
9,992
I have an issue with one of my Sonoff SV's that I connected to the garage. It keep going offline like in the picture below.
View attachment 1080935
If I disconnect the power and connect it again it starts up and connects, but after an hour or so it starts going offline again until it just stays offline. The SV on the gate is always available, and the wifi AP is between the 2, so I don't think it is losing wifi access. I am wondering if the power supply coming from the Xtrac garage opener is not consistent? It has 24V DC output. Should I add a separate power supply for the SV? Again, the one on the gate is happily running off the power provided by the Centurion D5.
Are you running Tasmota? You should be able to check uptime to see if the device is being restarted.
I have a separate power supply for my garage unit because I wasnt sure about sleep cycles on the Xtrac.
 

furpile

Expert Member
Joined
Jul 14, 2014
Messages
3,512
Are you running Tasmota? You should be able to check uptime to see if the device is being restarted.
I have a separate power supply for my garage unit because I wasnt sure about sleep cycles on the Xtrac.
No, standard firmware. I think I will bypass the power output of the xtrac over the weekend, and hook it up directly to the batteries of the unit. Will see if that improves it or not.
 

BBC

Well-Known Member
Joined
Jan 30, 2015
Messages
315
Looking for a "Smart RGB LED strip"

Is Sonoff the only option? Where is it priced the cheapest?
 

fxit_man

Executive Member
Joined
Sep 16, 2006
Messages
6,417
Looking for a "Smart RGB LED strip"

Is Sonoff the only option? Where is it priced the cheapest?
Check up "WLED" unless you need an off the shelf solution

No, only one network with a few AP's around the house. Works well for cellphones etc. Don't have many devices on the network yet, only 5 or 6 wifi switches at this stage.

So you have 5Ghz and 2.4GHz on one SSID? Try create a seperate 2.4GHz-only SSID for the Sonoffs.
 

furpile

Expert Member
Joined
Jul 14, 2014
Messages
3,512
Check up "WLED" unless you need an off the shelf solution



So you have 5Ghz and 2.4GHz on one SSID? Try create a seperate 2.4GHz-only SSID for the Sonoffs.
There is a separate 5GHz WiFi SSID. This SV is the only thing going offline like this.
 
Top