Search found 37 matches
- Tuesday 01 August 2017 19:56
- Forum: Zigbee
- Topic: Xiaomi Smart Home Suite (very cheap) compatibilty?
- Replies: 2452
- Views: 512406
Re: Xiaomi Smart Home Suite (very cheap) compatibilty?
Hi, i got problem with "blocky" and xiaomi switch. When i set for example turn on light when press "Long Click" and another rule dimm light when press "Long Click Release" then domoticz execute both commands - probably for blocky "Long Click" and "Long Click Release" it's thats same. PS. there is ...
- Friday 28 April 2017 15:53
- Forum: PHP and all others
- Topic: Pass2PHP
- Replies: 1509
- Views: 797219
Re: Pass2PHP
Crap, my site is very outdated :? This is more recent (but could also use an update) https://github.com/Egregius Ok but readme almost not exist. Installation Download the repository and unpack it Place the lua script script_device_pass2php.lua in the lua folder of your Domoticz scripts folder If ...
- Friday 28 April 2017 14:22
- Forum: PHP and all others
- Topic: Pass2PHP
- Replies: 1509
- Views: 797219
Re: Pass2PHP
I did try according to this instruction:Egregius wrote:You're latest code block isn't the pass2php file posted in this topic.
Also the other scripts are very old versions.
https://egregius.be/2016/lua-pass2php-v2-0/
There is somewhere step by step instruction for noobs?
- Friday 28 April 2017 13:53
- Forum: PHP and all others
- Topic: Pass2PHP
- Replies: 1509
- Views: 797219
Re: Pass2PHP
I got problem with migrate to pass2PHP Here's what I did: sudo apt-get install php5 php5-cli JSON.lua - file allredy exist /home/pi/domoticz/scripts/lua/JSON.lua ee5_base64.lua /home/pi/domoticz/scripts/lua/ee5_base64.lua ...
- Friday 28 April 2017 13:35
- Forum: Other questions and discussions
- Topic: Summing several counters
- Replies: 20
- Views: 4522
Re: Summing several counters
Ok, before i go forward i need run pass2PHP
Edit: tempolary moved to pass2PHP viewtopic.php?f=64&t=12343&p=131489#p131489
Edit: tempolary moved to pass2PHP viewtopic.php?f=64&t=12343&p=131489#p131489
- Friday 28 April 2017 0:35
- Forum: Other questions and discussions
- Topic: Summing several counters
- Replies: 20
- Views: 4522
Re: Summing several counters
kWh count not sum data correctly $today=number_format(str_replace(' kWh','',$dom['CounterToday']),3); What mean 3 on the end this line ? lg function not work for me: after add lg('$today: '.$today); pi@raspberrypi:~ $ php /home/pi/domoticz/scripts/php/energia.php PHP Fatal error: Call to undefined ...
- Thursday 27 April 2017 23:07
- Forum: Other questions and discussions
- Topic: Summing several counters
- Replies: 20
- Views: 4522
Re: Summing several counters
Of Course, thank you.ropske wrote:replace:Code: Select all
$usage=number_format(str_replace(' Watt','',$dom['Usage']),0);
with:and try againCode: Select all
$usage=number_format(str_replace(' Watt','',$dom['Data']),0);
- Thursday 27 April 2017 22:31
- Forum: Other questions and discussions
- Topic: Summing several counters
- Replies: 20
- Views: 4522
Re: Summing several counters
In my case i got 2 roomplans, first with kWh and second with Watt usage. only kWh in my case is now: <?php $sumtoday=0; $domoticz=json_decode(file_get_contents('http://192.168.1.247:8080/json.htm?type=devices&plan=2'),true); if($domoticz){ foreach($domoticz['result'] as $dom){ $today=number_format ...
- Thursday 27 April 2017 22:05
- Forum: Other questions and discussions
- Topic: Summing several counters
- Replies: 20
- Views: 4522
Re: Summing several counters
Seems you have only 'CounterToday' and no 'Usage' is this correct? Yes, that's why I did # if($domoticz){ foreach($domoticz['result'] as $dom){ # $usage=number_format(str_replace(' Watt','',$dom['Usage']),0); # $sumusage=$sumusage+$usage; $today=number_format(str_replace(' kWh','',$dom ...
- Thursday 27 April 2017 21:57
- Forum: Other questions and discussions
- Topic: Summing several counters
- Replies: 20
- Views: 4522
Re: Summing several counters
Thank You but something not working. Thats what I change http://s1.fotowrzut.pl/RN1ETR9P96/1.jpg Everything seems to work, but my virtual device with the sum, all the time = 0 My roomplan { "ActTime" : 1493322772, "ServerTime" : "2017-04-27 21:52:52", "Sunrise" : "05:34", "Sunset" : "20:18", "result ...
- Wednesday 26 April 2017 20:10
- Forum: Other questions and discussions
- Topic: Summing several counters
- Replies: 20
- Views: 4522
Re: Summing several counters
I'm programing noob, help will be welcome.
- Tuesday 25 April 2017 12:15
- Forum: Other questions and discussions
- Topic: Summing several counters
- Replies: 20
- Views: 4522
Summing several counters
Hi, I have 3 energy meters (pulse counters) for three separate phases, how to make a virtual device that will show me the consumption of kWh for all three?
- Wednesday 28 December 2016 12:45
- Forum: Others
- Topic: Using BROADLINK RM2 on DOMOTICZ
- Replies: 254
- Views: 124570
Re: Using BROADLINK RM2 on DOMOTICZ
Curious answer In computing the real competence is not to create a so called program, but to give to all the ways to use it easily Assert that it is specialist affair, it often is to hide the fact of having no capacity to go at the end of a complete project The RM BRIDGE on Android was created to ...
- Wednesday 28 December 2016 11:15
- Forum: Others
- Topic: Using BROADLINK RM2 on DOMOTICZ
- Replies: 254
- Views: 124570
Re: Using BROADLINK RM2 on DOMOTICZ
Guys I'm sorry I'm too much of a newbie here. I don't even know where to start to get this to work I have an XP machine, a Broadlink RM Pro. Looks like I need Domoticz for Windows and RM Controller? Does anyone have some very simple starting steps please? It's not for beginners, minimal skill ...
- Tuesday 27 December 2016 0:03
- Forum: Others
- Topic: Using BROADLINK RM2 on DOMOTICZ
- Replies: 254
- Views: 124570
Re: Using BROADLINK RM2 on DOMOTICZ
Guys, you got every thing you need, stop bla bla bla and be happy.
viewtopic.php?p=110715&sid=6d5e3b993fde ... 98#p108350
viewtopic.php?p=110715&sid=6d5e3b993fde ... 98#p108350
- Sunday 18 December 2016 16:37
- Forum: Others
- Topic: Using BROADLINK RM2 on DOMOTICZ
- Replies: 254
- Views: 124570
Re: Using BROADLINK RM2 on DOMOTICZ
Hello @tuspam, Seems that yours usefull scripts do not work with the new version 0.2 of the library. setting static host device is not handled correctly. :( Edit: found it, device definition does not exist anymore in the library. For rm1, rm2, rm3, it will need to use a definition like this for rm ...
- Saturday 17 December 2016 12:05
- Forum: Other questions and discussions
- Topic: How to check presence of Beacon ?
- Replies: 371
- Views: 82120
Re: How to check presence of Beacon ?
Please help with configuration: TAG_DATA = [ ["Tag_Mirek","F2:FB:9F:D4:3E:F0",30,0, 336 ,REPEAT_MODE] ] 336 in my case is correct? Any suggestions? Error log: 2016-12-17 12:04:52,982 - root - DEBUG - Ok hci0 interface Up n running ! 2016-12-17 12:04:52,983 - root - DEBUG - Connect to bluetooth ...
- Monday 12 December 2016 12:08
- Forum: Others
- Topic: Using BROADLINK RM2 on DOMOTICZ
- Replies: 254
- Views: 124570
Re: Using BROADLINK RM2 on DOMOTICZ
Just to be clear, the broadlink python libraryby mjg59 is able to control the RM2 (pro) and the RM3 blackbean. I suspect that this library also works for some other wifi broadlink devices like the SP and SP2 sockets. For the installation of the library I just copied it in a PATH reachable python ...
- Sunday 11 December 2016 13:17
- Forum: PHP and all others
- Topic: Script execution problem after a few hours.
- Replies: 0
- Views: 1220
Script execution problem after a few hours.
After some time my domoticz (latest beta) got some problems with the execute scripts in web interface, for example my virtual switch for turn on light looks like that: On Action: script:///home/pi/domoticz/scripts/python/playcode2.py /home/pi/domoticz/scripts/python/lightOffice.txt When i press ...
- Sunday 11 December 2016 13:01
- Forum: Others
- Topic: Using BROADLINK RM2 on DOMOTICZ
- Replies: 254
- Views: 124570
Re: Using BROADLINK RM2 on DOMOTICZ
After some time my domoticz (latest beta) got some problems with execute scripts, for example my virtual switch for turn on light looks like that: On Action: script:///home/pi/domoticz/scripts/python/playcode2.py /home/pi/domoticz/scripts/python/lightOffice.txt When i press virtul switch in domoticz ...