Search found 45 matches

by hekm77
Friday 06 April 2018 17:42
Forum: Zigbee
Topic: Xiaomi Gateway FM
Replies: 0
Views: 3214

Xiaomi Gateway FM

Xiaomi Gateway FM in Domoticz . Playing your channels from MiHome app favorites, obtaining (updating) the status. Install php-miio sudo apt update sudo apt upgrade sudo apt install php7.0 git clone https://github.com/skysilver-lab/php-miio.git php-miio Get the gateway token and IP: cd /home/pi/php ...
by hekm77
Tuesday 13 February 2018 17:40
Forum: Blockly
Topic: Xiaomi Gateway - Setting light color
Replies: 13
Views: 7773

Re: Xiaomi Gateway - Setting light color

If interesting, You can try. You must create two Dummy Switch, type - Dimmer: miGateway Hue and miGateway Bri In the script , enter your username, password, ip and port domoticz. 111.png dzVents 2.4.x return { on = { devices = { 'miGateway Hue', 'miGateway Bri' } }, logging = { level = domoticz.LOG ...
by hekm77
Saturday 27 January 2018 10:44
Forum: iOS
Topic: Pilot: Home Automation Control (iOS app)
Replies: 1000
Views: 233994

Re: Pilot: Home Automation Control (iOS app)

Favorites work in 2302 πŸ‘πŸ»
by hekm77
Wednesday 10 January 2018 9:55
Forum: LUA
Topic: Yeelight and Hue lights - use same settings
Replies: 19
Views: 7048

Re: Yeelight and Hue lights - use same settings

Code: Select all

local Lights = {'name1', 'name2', 'name3'}

for n, name in pairs(Lights) do
domoticz.devices(name).switchOn()
end
by hekm77
Wednesday 10 January 2018 9:19
Forum: LUA
Topic: Yeelight and Hue lights - use same settings
Replies: 19
Views: 7048

Re: Yeelight and Hue lights - use same settings

local Light = domoticz.devices('Name_of_your_lamp_from_the_device_tab')
by hekm77
Wednesday 27 December 2017 9:08
Forum: Zigbee
Topic: Xiaomi Smart Home Suite (very cheap) compatibilty?
Replies: 2452
Views: 525719

Re: Xiaomi Smart Home Suite (very cheap) compatibilty?

serak wrote: ↑Wednesday 27 December 2017 0:34 Why I get this error?
IP:Port = ip_domoticz:port_domoticz
idx = xiaomi gateway idx from devices tab
by hekm77
Sunday 03 December 2017 11:35
Forum: Zigbee
Topic: Xiaomi Smart Home Suite (very cheap) compatibilty?
Replies: 2452
Views: 525719

Re: Xiaomi Smart Home Suite (very cheap) compatibilty?

mvveelen wrote: ↑Sunday 03 December 2017 11:29 How did you come up with this list?
The last two characters are the same

Code: Select all

01586B 9E
597BFF 9E
by hekm77
Sunday 03 December 2017 11:23
Forum: Zigbee
Topic: Xiaomi Smart Home Suite (very cheap) compatibilty?
Replies: 2452
Views: 525719

Re: Xiaomi Smart Home Suite (very cheap) compatibilty?

Now I'd like to use the right names for the battery statuses, how can I see which device it belongs to? 3453 Xiaomi GW 01586B9E 1 Voordeur (X) Light/Switch 4594 Xiaomi GW 597BFF9E 1 Xiaomi Voltage General Voltage 3534 Xiaomi GW 011C43D3 1 Dakraam slaapkamer (X) 4598 Xiaomi GW 1D5FD3D3 1 Xiaomi ...
by hekm77
Saturday 11 November 2017 0:29
Forum: LUA
Topic: Yeelight and Hue lights - use same settings
Replies: 19
Views: 7048

Re: Yeelight and Hue lights - use same settings

Thank you, script works. But... everything is really slow, any change takes long time to complete and in Domoticz logs i see: 2017-11-01 17:55:58.435 Error: EventSystem: Warning!, lua script Yeelight-Scene has been running for more than 10 seconds Updated the script to dzVents 2.3.0. Only for ...
by hekm77
Sunday 03 September 2017 2:00
Forum: Zigbee
Topic: Xiaomi Smart Home Suite (very cheap) compatibilty?
Replies: 2452
Views: 525719

Re: Xiaomi Smart Home Suite (very cheap) compatibilty?

Or perhaps a disco script ? runcommand = "sudo echo -ne '{\"id\":1, \"method\":\"start_cf\", \"params\":[\"cf\", 500, 0, \"50, 2, 5000, 100, 50, 2, 5000, 1\"]}\\r\\n' | nc -w1 " ..IP.." " ..PORT.."" Or other scripts..... for nice yeelight options..? Police Mode runcommand = "sudo echo -ne '{\"id ...
by hekm77
Saturday 02 September 2017 9:52
Forum: iOS
Topic: Domoticz App
Replies: 505
Views: 124458

Re: Domoticz App

Congrats with the release in App Store
Great Job!
Dark theme πŸ‘
In the Russian translation contains inaccuracies
Can you add the choice of application language?
Thanks
by hekm77
Tuesday 29 August 2017 8:10
Forum: Python
Topic: Python plugin: Sony Bravia TV
Replies: 205
Views: 46576

Re: Python plugin: Sony Bravia TV

v1.2 works fine with KDL-60W605B
Thanks.
by hekm77
Thursday 24 August 2017 11:43
Forum: Zigbee
Topic: Xiaomi Smart Home Suite (very cheap) compatibilty?
Replies: 2452
Views: 525719

Re: Xiaomi Smart Home Suite (very cheap) compatibilty?

snuiter wrote: ↑Thursday 24 August 2017 9:57 Had to analyze the script and play with it to understand how it worked. But it does. Thanks hekm77!
Create a dummy selector switch with levels
Spoiler: show
1.jpg
1.jpg (338.79 KiB) Viewed 3124 times
by hekm77
Wednesday 23 August 2017 22:44
Forum: Zigbee
Topic: Xiaomi Smart Home Suite (very cheap) compatibilty?
Replies: 2452
Views: 525719

Re: Xiaomi Smart Home Suite (very cheap) compatibilty?

So I installed some Xiaomi stuff, like the gateway, a switch button and some other devices, all are working pretty good. My question is now how can i control the coloring of the gateway light in my script I have tried a couple of things. I want to change color on specific occassions. Any ...
by hekm77
Sunday 06 August 2017 15:07
Forum: dzVents
Topic: first steps
Replies: 13
Views: 2234

Re: first steps

I don't agree. Your if is executed for all lamps in your array. There is no need to evaluate the rule inside your loop as the result is the same for every loop iteration. That's why you can remove it from the loop and do it before the loop. If it evaluates to false there is no need for your loop in ...
by hekm77
Sunday 06 August 2017 14:37
Forum: dzVents
Topic: first steps
Replies: 13
Views: 2234

Re: first steps

Well, in your case you want to loop over your array of lamp names and that is just a standard lua table/array so you loop is perfectly suited for that. dzVents forEach is if want to loop over all devices or over a set of filtered devices (or over any of the dzVents collections). But in your ...
by hekm77
Sunday 06 August 2017 13:21
Forum: dzVents
Topic: first steps
Replies: 13
Views: 2234

Re: first steps

dannybloe wrote:The documentation should give you examples in how to use the forEach() function. Isn't that helping you?
Not yet, unfortunately. Can you show in my script example?
Thanks
by hekm77
Sunday 06 August 2017 10:24
Forum: dzVents
Topic: first steps
Replies: 13
Views: 2234

Re: first steps

Hi. I'm newby in dzVents too. How can I use domoticz.devices().forEach(function() .. end) instead of for n, Lamp in pairs(Lamps) do .. end in my script? return { active = true, on = { devices = { 'PIR' } }, logging = { level = domoticz.LOG_ERROR }, execute = function(domoticz, switch) local Lamps ...