Search found 113 matches

by thorbj
Friday 06 October 2017 23:01
Forum: dzVents
Topic: Turn of dummy switch if no motion after 30 min.
Replies: 2
Views: 1087

Re: Turn of dummy switch if no motion after 30 min.

Thank you! That solved the problem :)
by thorbj
Friday 06 October 2017 13:43
Forum: dzVents
Topic: Turn of dummy switch if no motion after 30 min.
Replies: 2
Views: 1087

Turn of dummy switch if no motion after 30 min.

Hi, how can i get this script to turn off HouseSw, only if any of the other switches is off, and have not been turned on again within 30 minutes? Also the notification gets sendt immediately, I wan't it to wait until the HouseSw is off. return { active = true, on = { devices = {'Bevegelse Stue ...
by thorbj
Friday 06 October 2017 8:47
Forum: dzVents
Topic: Notifications sending -2
Replies: 2
Views: 791

Re: Notifications sending -2

Great, that did the trick!
Thanks!
by thorbj
Thursday 05 October 2017 23:40
Forum: dzVents
Topic: Notifications sending -2
Replies: 2
Views: 791

Notifications sending -2

Domoticz version 3.8153 Hi, I have an issue with notifications from dzVents. In the following code I have added a domoticz.notify string. When executed the logg tells me the notification was sent successfully, but in Pushbullet and Telegram I only get a message containing "-2". What's causing this ...
by thorbj
Thursday 05 October 2017 23:13
Forum: Third party and supplementary tools
Topic: dtgbot - Domoticz TeleGram BOT
Replies: 597
Views: 127412

Re: dtgbot - Domoticz TeleGram BOT

So dtgbot and the Telegram notification system isn't the same? Sorry for my mix-up. I have this dzVents script: return { active = true, on = { timer = {'at 22:42-06:00'}, }, execute = function(domoticz, device) -- your script logic goes here, something like this: if (domoticz.devices('AJ lampe ...
by thorbj
Thursday 05 October 2017 22:55
Forum: Third party and supplementary tools
Topic: dtgbot - Domoticz TeleGram BOT
Replies: 597
Views: 127412

Re: dtgbot - Domoticz TeleGram BOT

Hi, when sending domoticz notifications from LUA, I don't get the notifications on Telegram, I only gett messages with "-2" as the only content.
I can send commands like /systemstatus and receive the correct values. So the -2 ony occurs when sending notifications.
What can cause this?
by thorbj
Friday 15 September 2017 11:47
Forum: Others
Topic: Domoticz & OSRAM Lightify
Replies: 35
Views: 13312

Re: Domoticz & OSRAM Lightify

If you own a hub, or wan't to get a hub anyway, then it's easier to access lightify bulbs in domoticz. But If you can't afford a hub, it would be awesome if there was an easy script/library.
by thorbj
Monday 26 June 2017 12:59
Forum: Zigbee
Topic: Ikea "TRÅDFRI" Gateway and smart lights series for ZigBee Light Link (ZLL) lighting
Replies: 63
Views: 43407

Re: Ikea "TRÅDFRI" Gateway and smart lights series for ZigBee Light Link (ZLL) lighting

Never mind, I got it.

Just needed to install libcoap, and than create moroens script.
by thorbj
Saturday 24 June 2017 8:48
Forum: Zigbee
Topic: Ikea "TRÅDFRI" Gateway and smart lights series for ZigBee Light Link (ZLL) lighting
Replies: 63
Views: 43407

Re: Ikea "TRÅDFRI" Gateway and smart lights series for ZigBee Light Link (ZLL) lighting

Hi, I'm trying to set up pytradfri on my Pi. I've downloaded libcoap using the script provided by ggravlingen, and I've installed python3 using sudo apt-get install python3-pip. Now, how do I install and use the script? I tried copy the pytradfri folder to domoticz\plugins\IKEA-Tradfri\ as suggested ...
by thorbj
Thursday 15 June 2017 13:35
Forum: Other questions and discussions
Topic: Tablet/touchscreen on the wall?
Replies: 15
Views: 10722

Re: Tablet/touchscreen on the wall?

Any tablet should work. You also need to buy a wall mount suited for your tablet of choice. Check ebay, dx, or amazon for cheap tablets.
You can find a great customizable frontpage to have on your tablet in this post: https://www.domoticz.com/forum/viewtopic.php?f=8&t=4698
by thorbj
Saturday 04 March 2017 12:11
Forum: dzVents
Topic: Running perl script from within dzVents?
Replies: 5
Views: 2754

Re: Running perl script from within dzVents?

path was wrong, "t" was missing from srcipts (scrips) return { active = true, on = { 'wall_switch' }, execute = function(domoticz, mySwitch) if domoticz.devices['wall_switch'].state == 'On' then os.execute('/home/pi/domoticz/scripts/limitless_rgb.sh') else os.execute('/home/pi/domoticz/scripts ...
by thorbj
Saturday 04 March 2017 12:10
Forum: Others
Topic: Domoticz & OSRAM Lightify
Replies: 35
Views: 13312

Re: Domoticz & OSRAM Lightify

fergalom wrote:ok so out of interest, I tried your scripts and switch actions above, they work perfectly as expected, no 512
For what its worth, Domoticz v3.5859 and perl v5.14.2
I don't know what's going on with my scripts, but I ended up buying a Hue and adding osram bulb to this one, that works great.
by thorbj
Thursday 10 November 2016 14:25
Forum: Show your projects
Topic: Easy Sonos
Replies: 80
Views: 75009

Re: Easy Sonos

YEEEEEEESSSSS! I'm able to use TTS on a RPI. As you can read Thorjb had some problems. I had the same. This problem exist when you don't use a file share but you use your RPI as place to read and find the MP3 files. I hope G3rard will change the following recommendations in the source files. If not ...
by thorbj
Tuesday 08 November 2016 10:37
Forum: Others
Topic: Domoticz & OSRAM Lightify
Replies: 35
Views: 13312

Re: Domoticz & OSRAM Lightify

I've also tried calling perl scripts from the switch, instead of the command itself. This also gives me a 512 error in the log. I have run chmod +x on the scripts. bulb_on.pl: #!/usr/bin/perl use Device::Osram::Lightify::Hub; my $x = Device::Osram::Lightify::Hub->new( host => "10.10.10.111 ...
by thorbj
Wednesday 02 November 2016 13:37
Forum: dzVents
Topic: Running perl script from within dzVents?
Replies: 5
Views: 2754

Re: Running perl script from within dzVents?

I'm pretty sure the if is correct, but I'm no expert in lua/perl/bash etc... I tried changing to a relative path, but still nothing. The script, perl.lua: -- DEVICE INDEX -- 161 Lightify bulb A60RGBW 01 local OL_BULB_HALL = 161 return { active = true, -- set to true to activate this script on = { OL ...
by thorbj
Tuesday 01 November 2016 23:13
Forum: Others
Topic: Domoticz & OSRAM Lightify
Replies: 35
Views: 13312

Re: Domoticz & OSRAM Lightify

No :) But I tried this now, and it seems thet Domoticz finally tries to run the commands. Yay! But it returns an error in the log: 2016-11-01 23:11:17.363 User: Admin initiated a switch command (161/Lightify1/Off) 2016-11-01 23:11:17.364 (Dummy switch) Lighting 1 (Lightify1) 2016-11-01 23:11:18.366 ...
by thorbj
Tuesday 01 November 2016 22:02
Forum: dzVents
Topic: Running perl script from within dzVents?
Replies: 5
Views: 2754

Re: Running perl script from within dzVents?

I now have the following script running when a dummy switch is clicked: -- DEVICE INDEX -- 161 Lightify bulb A60RGBW 01 local OL_BULB_HALL = 161 return { active = true, -- set to true to activate this script on = { OL_BULB_HALL, }, execute = function(domoticz) local bulbHall = domoticz.devices[OL ...
by thorbj
Tuesday 01 November 2016 18:29
Forum: Others
Topic: Domoticz & OSRAM Lightify
Replies: 35
Views: 13312

Re: Domoticz & OSRAM Lightify

Thanks, now I successfully installed it via Git. But I still can't execute the commands from the switch. I can now run ~/Device-Osram-Lightify/bin/ol --hub 10.10.10.111 --off="A60RGBW 01" from Shell to turn off the bulb, but when I press the switch, nothing happens. This is the log: 2016-11-01 18:23 ...
by thorbj
Tuesday 01 November 2016 16:49
Forum: Others
Topic: Domoticz & OSRAM Lightify
Replies: 35
Views: 13312

Re: Domoticz & OSRAM Lightify

I removed the cpan module and cloned via Git. But I can't make install. pi@DomoCore ~ $ cd Device-Osram-Lightify/ pi@DomoCore ~/Device-Osram-Lightify $ ls bin examples LICENSE MANIFEST t ChangeLog lib Makefile.PL README.md pi@DomoCore ~/Device-Osram-Lightify $ make make: *** No targets specified and ...
by thorbj
Tuesday 01 November 2016 15:24
Forum: Others
Topic: Domoticz & OSRAM Lightify
Replies: 35
Views: 13312

Re: Domoticz & OSRAM Lightify

I found ol here:

Code: Select all

~/.cpan/build/Devices_Osram_Lightify-0.6-iXykqV/bin/ol
But running

Code: Select all

~/.cpan/build/Devices_Osram_Lightify-0.6-iXykqV/bin/ol --hub 10.10.10.111 --off="A60RGBW 01"    
from Shell don't work. No such file or directory.