Open MaxWinterstein opened 8 years ago
Thanks Max! Installed and connected as expected. Switching on devices works, but switching off is not possible?
Then both should work. You tried with dummySwitch?
{ "class": "DummySwitch", "id": "dummy-switch", "name": "Dummy Switch" },
Von meinem iPhone gesendet
Am 09.01.2016 um 09:03 schrieb djmvt notifications@github.com:
Thanks Max! Installed and connected as expected. Switching on devices works, but switching off is not possible?
— Reply to this email directly or view it on GitHub.
No tried with my already configured devices. Kaku switches do work (both on and off).
Shellswitches that I use to control my hue lights (giving an on and off command followed by a shell curl command) are only turning on. Off command not working.
Hope you can do anything with this info.
Maurice
Op 9 januari 2016 11:31:09 schreef Max Winterstein notifications@github.com:
Then both should work. You tried with dummySwitch?
{ "class": "DummySwitch", "id": "dummy-switch", "name": "Dummy Switch" },
Von meinem iPhone gesendet
Am 09.01.2016 um 09:03 schrieb djmvt notifications@github.com:
Thanks Max! Installed and connected as expected. Switching on devices works, but switching off is not possible?
— Reply to this email directly or view it on GitHub.
Reply to this email directly or view it on GitHub: https://github.com/MaxWinterstein/pebblematic/issues/1#issuecomment-170222120
Could you Provide me the device config? Maybe i can try and debug better :)
Von meinem iPhone gesendet
Am 09.01.2016 um 11:51 schrieb djmvt notifications@github.com:
No tried with my already configured devices. Kaku switches do work (both on and off).
Shellswitches that I use to control my hue lights (giving an on and off command followed by a shell curl command) are only turning on. Off command not working.
Hope you can do anything with this info.
Maurice
Op 9 januari 2016 11:31:09 schreef Max Winterstein notifications@github.com:
Then both should work. You tried with dummySwitch?
{ "class": "DummySwitch", "id": "dummy-switch", "name": "Dummy Switch" },
Von meinem iPhone gesendet
Am 09.01.2016 um 09:03 schrieb djmvt notifications@github.com:
Thanks Max! Installed and connected as expected. Switching on devices works, but switching off is not possible?
— Reply to this email directly or view it on GitHub.
Reply to this email directly or view it on GitHub: https://github.com/MaxWinterstein/pebblematic/issues/1#issuecomment-170222120 — Reply to this email directly or view it on GitHub.
{ "id": "hue-eettafel", "name": "Eettafel", "class": "ShellSwitch", "onCommand": "curl -s -X PUT -d '{\"scene\":\"4b11ebfca-on-0\"}' http://192.168.1.54/api/newdeveloper/groups/0/action >/dev/null", "offCommand": "curl -s -X PUT -d '{\"scene\":\"77470a3f5-off-0\"}' http://192.168.1.54/api/newdeveloper/groups/0/action >/dev/null" },
this is one of the shellswitch devices.
if you need anything else then please tell me.
Maurice
2016-01-09 12:53 GMT+01:00 Max Winterstein notifications@github.com:
Could you Provide me the device config? Maybe i can try and debug better :)
Von meinem iPhone gesendet
Am 09.01.2016 um 11:51 schrieb djmvt notifications@github.com:
No tried with my already configured devices. Kaku switches do work (both on and off).
Shellswitches that I use to control my hue lights (giving an on and off command followed by a shell curl command) are only turning on. Off command not working.
Hope you can do anything with this info.
Maurice
Op 9 januari 2016 11:31:09 schreef Max Winterstein < notifications@github.com>:
Then both should work. You tried with dummySwitch?
{ "class": "DummySwitch", "id": "dummy-switch", "name": "Dummy Switch" },
Von meinem iPhone gesendet
Am 09.01.2016 um 09:03 schrieb djmvt notifications@github.com:
Thanks Max! Installed and connected as expected. Switching on devices works, but switching off is not possible?
— Reply to this email directly or view it on GitHub.
Reply to this email directly or view it on GitHub:
https://github.com/MaxWinterstein/pebblematic/issues/1#issuecomment-170222120
— Reply to this email directly or view it on GitHub.
— Reply to this email directly or view it on GitHub https://github.com/MaxWinterstein/pebblematic/issues/1#issuecomment-170229100 .
oh, i see. This will not be too hard to implement. Will do this soon :)
Have another bug currently with an device that breaks the „all devices“ menu for me. Need to investigate into that and then i can fix your ShellSwitch. FYI: You can press the middle button long and see als available information for an device. Like actions and stuff.
Am 09.01.2016 um 14:31 schrieb djmvt notifications@github.com:
{ "id": "hue-eettafel", "name": "Eettafel", "class": "ShellSwitch", "onCommand": "curl -s -X PUT -d '{\"scene\":\"4b11ebfca-on-0\"}' http://192.168.1.54/api/newdeveloper/groups/0/action >/dev/null", "offCommand": "curl -s -X PUT -d '{\"scene\":\"77470a3f5-off-0\"}' http://192.168.1.54/api/newdeveloper/groups/0/action >/dev/null" },
so i was able to reproduce the bug with an dummy shell switch:
{ "id": "light", "name": "Lamp", "class": "ShellSwitch", "onCommand": "echo on", "offCommand": "echo off", "getStateCommand": "echo false", "interval": 0 },
it wont response to an toggle action like any other switch.
Asked in chat (gitter) for help, need to wait for useful answer.
created pimatic/pimatic/issues/783
Ok thank you for trying this. Hope there will be an answer how to solve this.
Maurice
Op 11 januari 2016 12:27:48 p.m. schreef Max Winterstein notifications@github.com:
so i was able to reproduce the bug with an dummy shell switch:
{ "id": "light", "name": "Lamp", "class": "ShellSwitch", "onCommand": "echo on", "offCommand": "echo off", "getStateCommand": "echo false", "interval": 0 },
it wont response to an toggle action like any other switch.
Asked in chat (gitter) for help, need to wait for useful answer.
Reply to this email directly or view it on GitHub: https://github.com/MaxWinterstein/pebblematic/issues/1#issuecomment-170513354
Problem is based on the getStateCommand. Developers are on it.
Does not have a Hue, so i can not test. Is there a way to test. you must fill "getStateCommand" with something like "on, off, 1, 0". Maybe you can curl out of the API? that would be the cleanest way.
Ok but since I am in no way a developer but just a good reader and trying to implement things by trial and error can you give me an example how I should implement this is in the given rule?
Op 11 januari 2016 5:17:43 p.m. schreef Max Winterstein notifications@github.com:
Problem is based on the getStateCommand. Developers are on it.
Does not have a Hue, so i can not test. Is there a way to test. you must fill "getStateCommand" with something like "on, off, 1, 0". Maybe you can curl out of the API? that would be the cleanest way.
Reply to this email directly or view it on GitHub: https://github.com/MaxWinterstein/pebblematic/issues/1#issuecomment-170601640
mhm, i had hope they will fix this quicker :(
I have no hue light, so i can just hint a quick fix since i don't know the api
[[ `curl -q www.google.de 2>/dev/null` =~ '{"status":"on"}' ]] && echo "on"
replace www.google.de with the api url and {"status":"on"} with something that looks like on or so.
Maybe this could work
haven't tested it because I wasn't at home but now I changed my hue lights to dummy switches and the hue plug-in. this is working!
have to check out the favorites now.
thanks!
Great idea, haven’t thought of this! :)
Am 21.01.2016 um 19:14 schrieb djmvt notifications@github.com:
haven't tested it because I wasn't at home but now I changed my hue lights to dummy switches and the hue plug-in. this is working!
have to check out the favorites now.
thanks!
— Reply to this email directly or view it on GitHub https://github.com/MaxWinterstein/pebblematic/issues/1#issuecomment-173660210.
Bug is fixed in newest release :)
PebbleMatic.zip v1.2