I get the error message in Domoticz saying Invalid ON Action!
Of course I have changed the IP ich idx
I would first verify it ( = http: // url: port / json.htm? Type = Command & param = Switch light & idx = IDXofNEOplug & switchcmd = On) works in the browser. I think it's case sensitive so the string you have there will not work like that but I'm not sure if you just wrote something there and have the correct format in the .conf file (there are also some extra spaces on your example but perhaps those are because of some copy/paste issue? )
Harlov wrote:
Wrong of me, I'm tired so that's probably why I can not think right
may try more tomorrow and see if I can get it to work, I get hope
Thank you for your help is appreciated
Don't worry, you are close For the "unauthorized", either disable authentication in local network (Domoticz settings -> System -> Local networks) or if you use basic authentication this should also work:
Harlov wrote:
Wrong of me, I'm tired so that's probably why I can not think right
may try more tomorrow and see if I can get it to work, I get hope
Thank you for your help is appreciated
Don't worry, you are close For the "unauthorized", either disable authentication in local network (Domoticz settings -> System -> Local networks) or if you use basic authentication this should also work:
I turned off Authentication: and added the Local Networks IP number 192.168.0.* And then it works as it should when I test in the browser But it does work not when I press on the remote control it may have to do with triggerhappy, I do not know.
Harlov wrote:
I turned off Authentication: and added the Local Networks IP number 192.168.0.* And then it works as it should when I test in the browser
Well, you can keep the authentication on, just keep the bypass for local network the you've set it up now. If you have opened the Domoticz port to outside network (and forwarded the IP) then anyone can access it...
Harlov wrote:But it does work not when I press on the remote control it may have to do with triggerhappy, I do not know.
I trust you reloaded Triggerhapppy after modifying the .conf file? If not, please do and test again. Also, are you 100% sure the remote's keypress is interpreted as "EV_KEY KEY_PLAYPAUSE"? It was what you saw when running the "dump" command?
Harlov wrote:
I turned off Authentication: and added the Local Networks IP number 192.168.0.* And then it works as it should when I test in the browser
Well, you can keep the authentication on, just keep the bypass for local network the you've set it up now. If you have opened the Domoticz port to outside network (and forwarded the IP) then anyone can access it...
Harlov wrote:But it does work not when I press on the remote control it may have to do with triggerhappy, I do not know.
I trust you reloaded Triggerhapppy after modifying the .conf file? If not, please do and test again. Also, are you 100% sure the remote's keypress is interpreted as "EV_KEY KEY_PLAYPAUSE"? It was what you saw when running the "dump" command?
I did a reload of TriggerHappy but nothing happens when I press any buttons
Harlov wrote:
I turned off Authentication: and added the Local Networks IP number 192.168.0.* And then it works as it should when I test in the browser
Well, you can keep the authentication on, just keep the bypass for local network the you've set it up now. If you have opened the Domoticz port to outside network (and forwarded the IP) then anyone can access it...
Harlov wrote:But it does work not when I press on the remote control it may have to do with triggerhappy, I do not know.
I trust you reloaded Triggerhapppy after modifying the .conf file? If not, please do and test again. Also, are you 100% sure the remote's keypress is interpreted as "EV_KEY KEY_PLAYPAUSE"? It was what you saw when running the "dump" command?
I did a reload of TriggerHappy but nothing happens when I press any buttons
Tried to switch to without EV_KEY but nothing happens. I also did reload twice but nothing works, your code looks after all begin the same way as my codes so then you might wonder what is wrong
Hmm, strange indeed. Only couple of things left to try I think.
========== EDIT:Maybe just a typo in your post above, but after posting this I noticed the command below is still faulty, it is missing the &switchcmd part, i.e. should be: curl -s "http://192.168.0.148:8080/json.htm?type ... ]switchcmd[/b]=On"
==========
1. From command line run the curl command and see if it goes through as expected. I mean:
Note! Copy/paste it from the .conf file so that you use the exact same format. If this triggers the desired action in Domoticz, then this part certainly works.
2. Choose another IR command and this time use the full keyboard in Flirc and associate the IR command to some simple key combination. E.g. what I used in my example CTRL+ALT+2. Now that you are not using a normal keyboard key it might cause some issues.
If 1. fails, then we need to try to fix that before moving to 2. Post any error messages you might get here...
Nautilus wrote:Hmm, strange indeed. Only couple of things left to try I think.
========== EDIT:Maybe just a typo in your post above, but after posting this I noticed the command below is still faulty, it is missing the &switchcmd part, i.e. should be: curl -s "http://192.168.0.148:8080/json.htm?type ... ]switchcmd[/b]=On"
==========
1. From command line run the curl command and see if it goes through as expected. I mean:
Note! Copy/paste it from the .conf file so that you use the exact same format. If this triggers the desired action in Domoticz, then this part certainly works.
2. Choose another IR command and this time use the full keyboard in Flirc and associate the IR command to some simple key combination. E.g. what I used in my example CTRL+ALT+2. Now that you are not using a normal keyboard key it might cause some issues.
If 1. fails, then we need to try to fix that before moving to 2. Post any error messages you might get here...
I changed the conf file and made a reload and this is the result
Nautilus wrote:Ok, curl is finally working. Did you already try it in the .conf file in the correct format?
I have saved this in the conf file and make reload
so it seems EV_KEY_KEY_PLAYPAUSE do not want to work
it might be something wrong with the infrared usb?
Nautilus wrote:Ok, curl is finally working. Did you already try it in the .conf file in the correct format?
I have saved this in the conf file and make reload
so it seems EV_KEY_KEY_PLAYPAUSE do not want to work
it might be something wrong with the infrared usb?
Nautilus wrote:Ok, curl is finally working. Did you already try it in the .conf file in the correct format?
I have saved this in the conf file and make reload
so it seems EV_KEY_KEY_PLAYPAUSE do not want to work
it might be something wrong with the infrared usb?
But if this does not work, then go for point number 2. from the earlier post and try with a standard key (combination)...
I've got it working now, I had to put a @ after KEY_PLAYPAUSE@ . I also had to modify the configuration files in it's default setup, the daemon is run as user nobody and i have Changing the user to pi, and then restart and it worked
Harlov wrote:
I've got it working now, I had to put a @ after KEY_PLAYPAUSE@ . I also had to modify the configuration files in it's default setup, the daemon is run as user nobody and i have Changing the user to pi, and then restart and it worked