Re: Gigaset Elements Cli - domoticz support
Posted: Saturday 23 June 2018 22:07
Great work! I am trying to get it start on boot but cannot get it working. Any advice?
Open source Home Automation System
https://forum.domoticz.com/
First thing that comes to mind is you try to start the cli as root during early phase of startup and it therefore can't find the config file. Easily solved by setting the config file location explicitly but please note it's bad practice to run stuff under root if not strictly needed hence not advisable.Dlanor wrote: Saturday 23 June 2018 22:07 Great work! I am trying to get it start on boot but cannot get it working. Any advice?
Code: Select all
--configCode: Select all
--log /tmp/gigasetelements-cli.logCode: Select all
[-] HTTP ERROR | 400 | Bad Request /identity/api/v1/user/login Code: Select all
gigasetelements-cli -u [email protected] -p password -m homeCode: Select all
pip install --upgrade https://github.com/dynasticorpheus/gigasetelements-cli/zipball/developSure you are using correct email and/or password? I have no issues and only get 400 ERROR when using wrong password hence askingHusker84 wrote: Friday 13 July 2018 16:35 Hi,
Someone knows why I'm getting this errorwhen runningCode: Select all
[-] HTTP ERROR | 400 | Bad Request /identity/api/v1/user/login?Code: Select all
gigasetelements-cli -u [email protected] -p password -m home
I'm using latest version on github, upgraded withThanks!Code: Select all
pip install --upgrade https://github.com/dynasticorpheus/gigasetelements-cli/zipball/develop
Code: Select all
GIGA='Gigaset' --Name of the Gigaset dumy modus
SIRENE='Sirene Garage' --My other 433Mhz Alarm siren
commandArray = {}
if (devicechanged['Bt_Alarme-Salon'] == 'Double Click' or devicechanged['BT_Garage'] == 'Double Click') then
if(globalvariables['Security'] ~= 'Disarmed') then
commandArray['IntSecPanel'] = 'Disarm'
commandArray[GIGA] = 'Set Level 0'
commandArray[SIRENE] = 'Off'
end
end
if (devicechanged['Bt_Alarme-Salon'] == 'Click') then
--Arm Home / Arm Away / Disarm
if(globalvariables['Security'] ~= 'Armed Home') then
commandArray['IntSecPanel'] = 'Arm Home'
commandArray[GIGA] = 'Set Level 10'
end
end
time=os.date("*t")
if (time.min == 0 and time.hour == 20 and globalvariables['Security'] == 'Disarmed') then
commandArray['IntSecPanel'] = 'Arm Home'
commandArray[GIGA] = 'Set Level 10'
end
if (time.min == 0 and time.hour == 7 and globalvariables['Security'] == 'Armed Home') then
commandArray['IntSecPanel'] = 'Disarm'
commandArray[GIGA] = 'Set Level 0'
end
if globalvariables['Security'] == 'Armed Away' then
if(otherdevices[GIGA] == 'Perso' or otherdevices[GIGA] == 'Off') then
commandArray[GIGA] = 'Set Level 20'
end
end
if globalvariables['Security'] == 'Armed Home' then
if(otherdevices[GIGA] == 'Absence' or otherdevices[GIGA] == 'Off') then
commandArray[GIGA] = 'Set Level 10'
end
end
if globalvariables['Security'] == 'Disarmed' then
if(otherdevices[GIGA] == 'Absence' or otherdevices[GIGA] == 'Perso') then
commandArray[GIGA] = 'Set Level 0'
commandArray[SIRENE] = 'Off'
end
end
print('######################## Statut de SecPanel: ' .. globalvariables['Security'])Thanks for reporting, I logged this issue at github and will have a look once I have some timeRaptor wrote: Friday 01 March 2019 12:25 Hello Dynasticorpheus, thank you for your code that works well at home to change the alarm mode. But, I have an error message as soon as the alarm is changed on the gigaset site.
Could you help me STP?
Finally had the time to look at this. Now solved in latest dev version, let me know if it's also the case for you.Raptor wrote: Friday 01 March 2019 12:25 Hello Dynasticorpheus, thank you for your code that works well at home to change the alarm mode. But, I have an error message as soon as the alarm is changed on the gigaset site.
Could you help me STP?
Code: Select all
git clone -b develop https://github.com/dynasticorpheus/gigasetelements-cli
cd gigasetelements-cli
git checkout aa0239f41caf12a5a3dc0167b065fef71b75cfd4Code: Select all
gigasetelements-cli --plug off --sensorid 028E9147C0