Try something like this. There might be syntax errors in the script, but the idea might work.
The script is now actived by a switch command. Which set the kevin value every minute.
There are still some flaws in the script, if sunset is after 21:30 you encounter errors (negative time).
return ...
Search found 38 matches
- Monday 05 November 2018 17:27
- Forum: Switches and Scenes
- Topic: f.lux style light management
- Replies: 3
- Views: 956
- Thursday 18 October 2018 9:59
- Forum: Other questions and discussions
- Topic: yeelight problem, in a other house ip domain
- Replies: 2
- Views: 402
Re: yeelight problem, in a other house ip domain
This question was also posted on tweakers. I asked that he posted this question also this forum.
He has two ip ranges :
192.168.1.XX (Wired)
10.0.0.XX (Wireless)
Domoticz is installed on a Synology NAS (Wired)
With this setup is unable to control his yeelight.
When he installs domoticz on a ...
He has two ip ranges :
192.168.1.XX (Wired)
10.0.0.XX (Wireless)
Domoticz is installed on a Synology NAS (Wired)
With this setup is unable to control his yeelight.
When he installs domoticz on a ...
- Friday 05 October 2018 9:10
- Forum: ESP8266
- Topic: Meek Wifi Wall Switch
- Replies: 81
- Views: 23239
Re: Meek Wifi Wall Switch
I really like you project and the price level is good. To bad it won't fit in my current house setup since my switch are located in a 3 of 4 flush surround plate.
Do you have plans to release a MEEK switch which can be connected (behind) a normal rock switch or push switch.
Do you have plans to release a MEEK switch which can be connected (behind) a normal rock switch or push switch.
- Friday 05 October 2018 8:48
- Forum: Zigbee
- Topic: Xiaomi Aqara wireless switches not recognized.
- Replies: 12
- Views: 3213
Re: Xiaomi Aqara wireless switches not recognized.
You might try to update to the latest beta, I looked into the code and found that the remote.b186acn01 is in there (code was last updated 5 days ago).
Hope this solves your issue.
Hope this solves your issue.
- Thursday 04 October 2018 15:41
- Forum: Zigbee
- Topic: Xiaomi Aqara Motion Sensor
- Replies: 1
- Views: 1248
Re: Xiaomi Aqara Motion Sensor
I think its supported...
Looked into the code and I found :
You might have to update the latest beta ..
Looked into the code and I found :
Code: Select all
(model == "sensor_motion.aq2") {
type = STYPE_Motion;
name = "Aqara Motion Sensor";- Thursday 04 October 2018 15:26
- Forum: Zigbee
- Topic: Aqara-WXKG11LM not working
- Replies: 1
- Views: 912
Re: Aqara-WXKG11LM not working
Hmm I looked into the source code and I found that the remote.b1acn01 is in there. So I will update to the latest beta and see if that solves it
-- Update to beta --
and it works. (Running V4.10038)
-- Update to beta --
and it works. (Running V4.10038)
- Thursday 04 October 2018 15:21
- Forum: Zigbee
- Topic: Aqara-WXKG11LM not working
- Replies: 1
- Views: 912
Aqara-WXKG11LM not working
I recently bought a Aqara-WXKG11LM (Xiaomi Mijia Aqara Switch)
I can connect it without any problems to the Xiaomi Gateway. But domoticz doesn't see the device as a switch.
In the log I find : XiaomiGateway (ID=21): unhandled model: remote.b1acn01
Can this item be added ?. If more info is needed ...
I can connect it without any problems to the Xiaomi Gateway. But domoticz doesn't see the device as a switch.
In the log I find : XiaomiGateway (ID=21): unhandled model: remote.b1acn01
Can this item be added ?. If more info is needed ...
- Wednesday 03 October 2018 13:58
- Forum: Switches and Scenes
- Topic: Yeelight LUA script for multiple IPs (with example)
- Replies: 5
- Views: 1370
Re: Yeelight LUA script for multiple IPs (with example)
I think doing this with dzvents is much easier.
Most of the yeelight function can be conttrolled using Dzvents..
some parts of my DzVents scripts
-- my yeelight (no IP needed, just the names)
local RGBWW={}
RGBWW[1] = domoticz.devices('Lamp bank links')
RGBWW[2] = domoticz.devices('YeeLight ...
Most of the yeelight function can be conttrolled using Dzvents..
some parts of my DzVents scripts
-- my yeelight (no IP needed, just the names)
local RGBWW={}
RGBWW[1] = domoticz.devices('Lamp bank links')
RGBWW[2] = domoticz.devices('YeeLight ...
- Wednesday 26 September 2018 11:32
- Forum: Other questions and discussions
- Topic: Noob Question Squeezebox Server
- Replies: 0
- Views: 290
Noob Question Squeezebox Server
Maybe a complete dumb question..
I am using a Squeebox Server (Works perfect in Domoticz). Now I wanna try to have my Alexa speak which song is played.
Speech works in Alexa and Domoticz. But the issue is that I have no idea how to get the playing song into a variable.
When I check the JSON ...
I am using a Squeebox Server (Works perfect in Domoticz). Now I wanna try to have my Alexa speak which song is played.
Speech works in Alexa and Domoticz. But the issue is that I have no idea how to get the playing song into a variable.
When I check the JSON ...
- Saturday 15 September 2018 10:08
- Forum: dzVents
- Topic: Motion Light Off after 2 minutes at Nighttime
- Replies: 8
- Views: 2563
Re: Motion Light Off after 2 minutes at Nighttime
@Warren : That solution will not work.
He wanted to switch off a light when there is no motoin (so no device trigger).
A solution that I use is to use a timed event (my PIR check runs every minute). So a solution might be.
return {
active = true,
on = {
timer = {'Every minute ...
He wanted to switch off a light when there is no motoin (so no device trigger).
A solution that I use is to use a timed event (my PIR check runs every minute). So a solution might be.
return {
active = true,
on = {
timer = {'Every minute ...
- Friday 14 September 2018 9:25
- Forum: dzVents
- Topic: LMS playlist not working
- Replies: 9
- Views: 1538
Re: LMS playlist not working
Updated to latest beta. Same behavior
- Thursday 13 September 2018 7:44
- Forum: dzVents
- Topic: LMS playlist not working
- Replies: 9
- Views: 1538
Re: LMS playlist not working
domoticz.sendCommand("Woonkamer","Play Playlist list1") : Works
Any idea why this command is working and the dzVents not ? Should I report a bug ?
For now my issue is solved (will use the send command).
Any idea why this command is working and the dzVents not ? Should I report a bug ?
For now my issue is solved (will use the send command).
- Wednesday 12 September 2018 13:00
- Forum: dzVents
- Topic: LMS playlist not working
- Replies: 9
- Views: 1538
Re: LMS playlist not working
No luck yet
2018-09-12 12:58:18.242 Status: User: Admin initiated a switch command (261/LMS/On)
2018-09-12 12:58:18.388 Status: dzVents: Info: LMS playlist: ------ Start internal script: LMS: Device: "LMS (Dummy)", Index: 261
2018-09-12 12:58:18.388 Status: dzVents: Info: LMS playlist: Device LMS ...
2018-09-12 12:58:18.242 Status: User: Admin initiated a switch command (261/LMS/On)
2018-09-12 12:58:18.388 Status: dzVents: Info: LMS playlist: ------ Start internal script: LMS: Device: "LMS (Dummy)", Index: 261
2018-09-12 12:58:18.388 Status: dzVents: Info: LMS playlist: Device LMS ...
- Wednesday 12 September 2018 12:06
- Forum: dzVents
- Topic: LMS playlist not working
- Replies: 9
- Views: 1538
Re: LMS playlist not working
Here the log.
Seems that list1 can not be found.
Checked again Sqeeuzebox server and under playlist there are 2 playlist list1 and list2
Using version 7.6.1
direct CLI command works perfect : http://192.168.1.125:9000/status.html?p0=playlist&p1=play&p2=list1
018-09-12 12:01:14.941 Status ...
Seems that list1 can not be found.
Checked again Sqeeuzebox server and under playlist there are 2 playlist list1 and list2
Using version 7.6.1
direct CLI command works perfect : http://192.168.1.125:9000/status.html?p0=playlist&p1=play&p2=list1
018-09-12 12:01:14.941 Status ...
- Tuesday 11 September 2018 19:54
- Forum: dzVents
- Topic: LMS playlist not working
- Replies: 9
- Views: 1538
LMS playlist not working
All,
I am trying the use the LMS (Logitech Media Server) device in dzVents. I created the following script, which is activated using a switch named LMS.
It switches in the Squeezebox (Woonkamer) and receiver (device 76 and 74).
Squeebox and receiver switch on/off perfect depending on the LMS ...
I am trying the use the LMS (Logitech Media Server) device in dzVents. I created the following script, which is activated using a switch named LMS.
It switches in the Squeezebox (Woonkamer) and receiver (device 76 and 74).
Squeebox and receiver switch on/off perfect depending on the LMS ...
- Tuesday 04 September 2018 18:12
- Forum: Speech & Voice Systems
- Topic: Alexa text to speech
- Replies: 152
- Views: 66091
Re: Alexa text to speech
Got it working. Yes !!
and my Echo Dot is registered in THE US
I used the ReneRene method where I ofcourse used the US servers of Amazon. Altough I didn't did step 6 had no how to disable 2 way auth on amazon.
I used RASPBIAN STRETCH WITH DESKTOP , I think this did the trick of getting the ...
and my Echo Dot is registered in THE US
I used the ReneRene method where I ofcourse used the US servers of Amazon. Altough I didn't did step 6 had no how to disable 2 way auth on amazon.
I used RASPBIAN STRETCH WITH DESKTOP , I think this did the trick of getting the ...
- Friday 22 June 2018 8:51
- Forum: dzVents
- Topic: Can this script made smarter / better
- Replies: 4
- Views: 1439
Re: Can this script made smarter / better
A lot of redunancy. all three lights undergo the same actions by the looks of it.
You could array the lights, instead of light, light1, light2 you could say light[0], light [1] and light[2], then create a loop like
i =0
repeat
— your code light[ i].switchOn()
i=i+1
Until i=2
Making my ...
- Monday 04 June 2018 21:04
- Forum: Show your projects
- Topic: My lighthouse
- Replies: 3
- Views: 1311
Re: My lighthouse
Great
- Monday 16 April 2018 16:34
- Forum: dzVents
- Topic: Can this script made smarter / better
- Replies: 4
- Views: 1439
Re: Can this script made smarter / better
@Waaren,
Thanks for you input
Had to lookup the Lua Operators for % (didn't know that one).
Thanks for you input
Had to lookup the Lua Operators for % (didn't know that one).
- Sunday 15 April 2018 16:03
- Forum: dzVents
- Topic: Can this script made smarter / better
- Replies: 4
- Views: 1439
Can this script made smarter / better
If have created the following script, which flash 2 yeelights and the Xiaomo gateway. Also it plays a sound using the Xiaomi gateway.
It is triggered with the TEST SW (a dummy switch which is activated by several PIR's).
The script works, but I think that the scripts can be made smarter of shorter ...
It is triggered with the TEST SW (a dummy switch which is activated by several PIR's).
The script works, but I think that the scripts can be made smarter of shorter ...