Hello Gents,
its been a good 5 days that I’m scratching my head without much luck - I just started using Openhab and I’m currently trying to power up my desk lampe using some 433hz plug,
I can run it without any issue from the shell using the send command, so proof of concept work fine,
I’m currently trying to get it working using the sitemaps,
- execbind is installed
- I have try to add a thing using the smarthome designer no luck
- I have added a thing using paper UI - and by having the output enable, I can see the log - I’m sure it’s a question of permission, even if my visudo looks good
thing:
Thing exec:command:Bureau [command="/etc/openhab2/scripts/bureauON.sh", interval=15, timeout=5]
items:
Switch Bureau “Bureau” { channel=“exec:command:Bureau:run”}
Sitemaps:
Frame label="Bureau" {
Switch item=Bureau icon="light"
visudo:
User privilege specification
openhabian ALL=(ALL) ALL
root ALL=(ALL:ALL) ALL
openhabian ALL=(ALL) NOPASSWD: ALL
openhabian ALL=NOPASSWD: /etc/openhab2/scripts/*
openhab ALL=(ALL:ALL) ALL
openhabian ALL=(ALL) ALL
(I have try different type so I might clean this a bit)
output from paperUI:
radio_button_uncheckedOutput
wiringPiSetup: Unable to open /dev/mem or /dev/gpiomem: Permission denied. Try running with sudo? wiringPiSetup: Unable to open /dev/mem or /dev/gpiomem: Permission denied.
my script that I’m currenttly trying to run:
#!/bin/bash
for run in {1…5}
do
/etc/openhab2/sitemaps/rcswitch-pi/send 01111 4 1
done
and my permission on that script
[11:20:21] openhabian@openHABianPi:/etc/openhab2/scripts$ ls -l bureauON.sh
-rwxr-xr-x 1 openhabian openhab 88 Mar 25 10:46 bureauON.sh
[11:20:26] openhabian@openHABianPi:/etc/openhab2/scripts$
also in general, tail -f /var/log/openhab2/openhab.log isn’t give me much information, is there a way I can have a debug level on the log?
thanks for your help guys!