Search found 49 matches

by sisaenkov
Wednesday 04 April 2018 16:07
Forum: Other questions and discussions
Topic: timer in blockly?
Replies: 2
Views: 755

Re: timer in blockly?

Create additional switch with Off timer to trigger it when moving detected.
http://domoticz.com/forum/viewtopic.php ... 92#p119503
by sisaenkov
Monday 26 March 2018 10:16
Forum: Blockly
Topic: get percentage level of blind
Replies: 0
Views: 1753

Re: get percentage level of blind

Blocky Level works only for percentage set up. You can't get percentage value using this.
by sisaenkov
Wednesday 28 February 2018 9:09
Forum: Android
Topic: wake android tablet or ipad from standby with pir sensor
Replies: 4
Views: 4297

Re: wake android tablet or ipad from standby with pir sensor

Just control your tablet's power.
By default (on Android) when you connect charger to your tablet the screen must turn on.

Simple condition:

when MOTION IS DETECTED then
TURN OFF CHARGER
TURN ON CHARGER
end

This power switching will turn the screen on.
by sisaenkov
Tuesday 09 January 2018 11:57
Forum: Switches and Scenes
Topic: Status of an existing door lock?
Replies: 2
Views: 1414

Re: Status of an existing door lock?


-> Any update on this? Looking for the same solution.


It depends on the type of your door frame.

If it hollow frame with holes for deadbolt you can use some kind of limit switch (I use it):
https://a.d-cd.net/ca28c16s-960.jpg

Also you can use reed switch and little magnet glued on deadbolt ...
by sisaenkov
Wednesday 13 December 2017 8:53
Forum: Other questions and discussions
Topic: USB Ports on Raspberry Pi
Replies: 1
Views: 929

Re: USB Ports on Raspberry Pi

You can try this solution with some delay after reboot:

https://raspberrypi.stackexchange.com/q ... 9442#49442
by sisaenkov
Thursday 23 November 2017 11:30
Forum: Other questions and discussions
Topic: Check ESP-01/12 Online Status
Replies: 4
Views: 1840

Re: Check ESP-01/12 Online Status

You can change ping checking by curl:

Code: Select all

curl -m 2 -iks http://192.168.5.15:80 | grep '200 OK'
by sisaenkov
Thursday 23 November 2017 10:40
Forum: Other questions and discussions
Topic: Check ESP-01/12 Online Status
Replies: 4
Views: 1840

Re: Check ESP-01/12 Online Status


Hello,

sometimes my ESP´s get lost. I do not sure whether the ESP lost the wifi connection or my wifi modem lost the esp´s.
So how could I check whether they are online or not? If they get lost, domoticz should push my a pushbullet message. Pushbullet is already working on my system.

Thanking ...
by sisaenkov
Friday 15 September 2017 15:39
Forum: Blockly
Topic: Blockly examples
Replies: 709
Views: 435940

Re: Blockly examples

Stanleyk wrote: Friday 15 September 2017 13:55 Hello ,

Why this is not work, please ?
Image
Add another one condition. Total looks like this:

IF teplota1 < 28 AND Relay1 == OFF THEN Relay1 = On

etc.
by sisaenkov
Friday 01 September 2017 19:20
Forum: Third party and supplementary tools
Topic: [MyDomoAtHome] Support thread
Replies: 1080
Views: 226564

Re: [MyDomoAtHome] Support thread

epierre wrote: Friday 01 September 2017 15:57 looks like it is linked to your evice encoding, is that utf8 ? (russian) ?
I don't remember how I fix it.
by sisaenkov
Monday 07 August 2017 16:03
Forum: Python
Topic: Python Plugin: Broadlink RM2 V3
Replies: 310
Views: 76489

Re: Python Plugin: Broadlink RM2 V3

But i have one question,it's possible to create one switch for lunch a series of command?
For examples "Turn On TV" must send "PowerOn TV"+"Input"+"Right Arrow"+"OK"

You can write bash-script like this and call it from Device On/Off action instead of python calling:

python /broadlink/command1 ...
by sisaenkov
Sunday 06 August 2017 19:24
Forum: LUA
Topic: Use IDX instead of device name in LUA ?
Replies: 4
Views: 2775

Re: Use IDX instead of device name in LUA ?

Try this:

Code: Select all

commandArray = {}

function getdevname4idx(deviceIDX)
   for i, v in pairs(otherdevices_idx) do
      if v == deviceIDX then
         return i
      end
   end
   return 0
end
commandArray[getdevname4idx(383)] = 'On'

return commandArray
by sisaenkov
Tuesday 01 August 2017 7:56
Forum: LUA
Topic: Switch on/off when someone entering/leaving home (Ubiquiti)
Replies: 38
Views: 20966

Re: Switch on/off when someone entering/leaving home (Ubiquiti)

Another one bash-script to update Domoticz variables according to user presence.
You will need to change UniFi and Domoricz script parameters.

In my case the are 2 users that can be detected, so I set 2 var_ids, 2 var_names and 2 macs.


#!/bin/bash

# UniFi parameters
username=admin
password ...
by sisaenkov
Thursday 27 July 2017 13:09
Forum: Other questions and discussions
Topic: Updating the status of Domoticz switches without triggering?
Replies: 37
Views: 18204

Re: Updating the status of Domoticz switches without triggering?


BUT is possible to take the script to perform when the change is done through Domoticz. I mean, when I change state trought the web interface on the switch, but not when the change is done through the http command.


Your dimmer must have TCP server on it.
Check this topic: http://domoticz.com ...
by sisaenkov
Sunday 23 July 2017 18:02
Forum: Blockly
Topic: Blockly examples
Replies: 709
Views: 435940

Re: Blockly examples

1. Subject is unnecessary for Telegram notifications.
2. Yes, I tried.
3. At that moment value of pressure sensor was 0.

Unfortunately blocky doesn't work correctly with pressure sensors' value.
As a result I decide to write this logic with LUA:

if (otherdevices['ColdWaterAvail'] == "On" and ...
by sisaenkov
Friday 21 July 2017 10:01
Forum: Blockly
Topic: Blockly examples
Replies: 709
Views: 435940

Re: Blockly examples

Hello.

I've got pressure sensors like this one:
pressure.png
pressure.png (12.29 KiB) Viewed 7671 times
And I can't get such event working:
pressure2.png
pressure2.png (19.51 KiB) Viewed 7671 times
I have also tried using String field for pressure value.
Works only "not equal" type.
by sisaenkov
Sunday 16 July 2017 12:56
Forum: LUA
Topic: Get dimmer level with LUA
Replies: 4
Views: 4813

Re: Get dimmer level with LUA


Can you share your solution?


Here are necessary code blocks:
(The key strings for you contains "uservariables")


idx = 383

commandArray = {}

function getname(deviceIDX)
for i, v in pairs(otherdevices_idx) do
if v == deviceIDX then
return i
end
end
return 0
end

DomDevice = getname(idx ...
by sisaenkov
Wednesday 31 May 2017 19:35
Forum: Other questions and discussions
Topic: Cheap Chinese WIFI module
Replies: 58
Views: 47342

Re: Cheap Chinese WIFI module

My edition of ESP easy settings for Sonoff 1ch relay below.

Works in all directions:
- pushing the button on Sonoff turns On/Off relay with LED and changing Domoticz device state.
- turning On/Off in Domoticz also turns On/Off relay with LED too.


Domoticz
On: http://esp05/control?cmd=GPIO,12,1 ...
by sisaenkov
Wednesday 31 May 2017 8:25
Forum: Third party and supplementary tools
Topic: [MyDomoAtHome] Support thread
Replies: 1080
Views: 226564

Re: [MyDomoAtHome] Support thread

Hello.

Got this error after MDAH start:

May 31 09:19:04 pi MDAH[7508]: info: Domoticz server: http://127.0.0.1:8080/json.htm
May 31 09:19:04 pi MDAH[7508]: info: Node version: 6.10.3
May 31 09:19:04 pi MDAH[7508]: info: MDAH version: MyDomoAtHome 0.2.8
May 31 09:19:04 pi MDAH[7508]: info: OS ...
by sisaenkov
Thursday 04 May 2017 13:34
Forum: Android
Topic: Geofence for Domoticz
Replies: 381
Views: 116921

Re: Geofence for Domoticz

Hello.

Device: Xiaomi Mi5
Android: 6.0.1

I got error "GoogleApiClient not yet connected" when I try to save a point.
Test connection is ok.

Solved after Android System WebView install.
by sisaenkov
Sunday 23 April 2017 13:47
Forum: Python
Topic: Python Plugin: Broadlink RM2 V2
Replies: 77
Views: 21653

Re: Python Plugin: Broadlink RM2 V2

In some cases this way doesn't allow to repeat 5-10-20 times. For example, when you volume up/down your TV or stereo.
Also it's impossible when On and Off actions are different.

I have found a workaround for this. Learning mode is active until the IR/RF-command is still sending. So I create ini ...