Search found 7 matches

by Inso
Monday 26 November 2018 23:54
Forum: dzVents
Topic: http correct answer from socket or how to send http updates
Replies: 1
Views: 339

http correct answer from socket or how to send http updates

Hi,

I have set up a socket on my pc via java to receive updates.
on dzVents, as soon as the device is updated, I send the new data as a Json string using
domoticz.openURL(URL)
which works fine, data is sent. However, after a litte time domotics shows me the error:
Error: Error opening url ...
by Inso
Friday 29 December 2017 0:15
Forum: MySensors
Topic: How to send text to sensor
Replies: 8
Views: 6988

Re: How to send text to sensor

Maybe I´m totally wrong (new to all of this^^), just an idea:
DZvents has a trigger for the device status. (https://www.domoticz.com/wiki/DzVents:_next_generation_LUA_scripting#Device_changes)
And you are able to send all kind of stuff to the devices using JSON (https://www.domoticz.com/wiki ...
by Inso
Sunday 26 November 2017 11:35
Forum: dzVents
Topic: dzVents global variables
Replies: 1
Views: 1802

dzVents global variables

Hi,

my lua script had some IP adresses as local variables, f.e.


local IPR1 = {'192.168.178.44', '192.168.178.49', '192.168.178.50', '192.168.178.48'}
PORT = '55443'
for n, IP in pairs(IPR1) do
runcommandoff = "sudo echo -ne '{\"id\":1,\"method\":\"set_scene\", \"params\":[\"cf\",4,1,\"500,1 ...
by Inso
Sunday 26 November 2017 11:15
Forum: dzVents
Topic: dzVents timer issue regarding day
Replies: 2
Views: 558

dzVents timer issue regarding day

Hi,

I have an active script, triggered by

Code: Select all

	on = {
	    timer = {'at 4:45 on mon, tue, wed, thu, fri'}
	},
	
this morning (Sunday), the script was triggered. Not sure if it also triggered on Saturday.

Checked time and date in domotics, all correct.
by Inso
Friday 13 October 2017 18:17
Forum: LUA
Topic: Delay of 2+ os.execute >1 second
Replies: 2
Views: 781

Re: Delay of 2+ os.execute >1 second

Works like a charm, thank you very much!
by Inso
Friday 13 October 2017 17:23
Forum: LUA
Topic: Delay of 2+ os.execute >1 second
Replies: 2
Views: 781

Delay of 2+ os.execute >1 second

Hi

I have a few Yeelight lamps and a cube. Idea is to execute commands on all lamps simultaniously. At the moment, I have a very small script, which only puts the lamps on and off.

commandArray = {}

SwitchDevice = 'Xiaomi Cube weiss';
IP1 = '192.168.178.54';
IP2 = '192.168.178.50';
PORT ...
by Inso
Thursday 12 October 2017 23:49
Forum: Blockly
Topic: Dim / Brightness
Replies: 0
Views: 618

Dim / Brightness

Hi,

I have a Xiaomi Cube working properly. Now I´d like to change the brightness: turn clockwise +5%, turn anti clockwise -5%.
Is domotics able to read the actual dim level, and then add / remove a certain percentage? And is there a way getting it running in blocky?