Page 8 of 8

Re: Gigaset Elements Cli - domoticz support

Posted: Saturday 23 June 2018 22:07
by Dlanor
Great work! I am trying to get it start on boot but cannot get it working. Any advice?

Re: Gigaset Elements Cli - domoticz support

Posted: Monday 25 June 2018 9:04
by dynasticorpheus
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?
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.

Code: Select all

--config
Can you enable logging and share the output? (remove sensitive information)

Code: Select all

--log /tmp/gigasetelements-cli.log

Re: Gigaset Elements Cli - domoticz support

Posted: Friday 13 July 2018 16:35
by Husker84
Hi,

Someone knows why I'm getting this error

Code: Select all

[-] HTTP ERROR        | 400      | Bad Request /identity/api/v1/user/login 
when running

Code: Select all

gigasetelements-cli -u [email protected] -p password -m home
?

I'm using latest version on github, upgraded with

Code: Select all

pip install --upgrade https://github.com/dynasticorpheus/gigasetelements-cli/zipball/develop
Thanks!

Re: Gigaset Elements Cli - domoticz support

Posted: Monday 16 July 2018 14:54
by dynasticorpheus
Husker84 wrote: Friday 13 July 2018 16:35 Hi,

Someone knows why I'm getting this error

Code: Select all

[-] HTTP ERROR        | 400      | Bad Request /identity/api/v1/user/login 
when running

Code: Select all

gigasetelements-cli -u [email protected] -p password -m home
?

I'm using latest version on github, upgraded with

Code: Select all

pip install --upgrade https://github.com/dynasticorpheus/gigasetelements-cli/zipball/develop
Thanks!
Sure you are using correct email and/or password? I have no issues and only get 400 ERROR when using wrong password hence asking

Re: Gigaset Elements Cli - domoticz support

Posted: Thursday 22 November 2018 18:03
by Mig6r
Hello,
A big thank you for the program that works perfectly.
For my part, I associated the gigaset with the domoticz security panel and also with two emergency buttons that I hid.
I leave you my script lua if it may interest you.

On the other hand, do you think it is possible to trigger a siren with a switch? I only see the command arm and disarm

Edit : Sorry for my bad English, I'm French :lol:

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'])

Re: Gigaset Elements Cli - domoticz support

Posted: Wednesday 23 January 2019 13:12
by spritey
Hello Dynasticorpheus,

due to my research on how I can connect to my elements cam I saw you posts in this topic.

Can you still access the Gigaset Elements Cam without the cloud service? I recognized that the cam opened port 554 (RTSP). Can I access the stream somehow in my LAN?

Re: Gigaset Elements Cli - domoticz support

Posted: Friday 01 March 2019 12:25
by Raptor
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?

Re: Gigaset Elements Cli - domoticz support

Posted: Wednesday 13 March 2019 16:26
by dynasticorpheus
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?
Thanks for reporting, I logged this issue at github and will have a look once I have some time

Re: Gigaset Elements Cli - domoticz support

Posted: Wednesday 29 May 2019 19:56
by Ankan
I don't know how the camera snapshot function is supposed to be implemented in Domoticz but I did it like this...

Copied /usr/local/bin/gigasetelements-cli to /usr/local/bin/uvccapture
Edited that file to remove args with this row: sys.argv=[sys.argv[0], '-A', '<CAMERA_ID_THAT_YOU_GET_FROM_GIGASETELEMENTS-CLI>']

Then edit line 620 in gigasetelements-cli.py get output snapshot file as /~/domoticz/tempcam.jpg

Then add a camera as a USB-camera ( url = uvccapture.cgi, IP-Address = domoticz-server-ip, Port = domoticz-server-port )

It's very slow but it works.. Maybe it's possible to do this in a better way?

My camera is a Gigaset elements smart camera and I cant get local access working. :-(

Re: Gigaset Elements Cli - domoticz support

Posted: Wednesday 17 July 2019 8:41
by dynasticorpheus
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?
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.

Re: Gigaset Elements Cli - domoticz support

Posted: Sunday 17 January 2021 16:33
by Arik2
Hello,
do I understand correctly that in the current dev version 1.6 all domoticz support has been removed from gigasetelemens-cli?
Or does the integration into domoticz no longer work via gigasetelements-cli.conf? Is there an other workflow to connect?
If this is the case, it is then possible to load v1.5 from somewhere, namely v1.4 is the most current in the master section on github.

Re: Gigaset Elements Cli - domoticz support

Posted: Monday 18 January 2021 14:38
by BRSS
Unfortunately, dynasticorpheus drop Domoticz support last summer (https://github.com/dynasticorpheus/giga ... eb6226ceb8).

Latest version for Domoticz is available this way :

Code: Select all

git clone -b develop https://github.com/dynasticorpheus/gigasetelements-cli
cd gigasetelements-cli
git checkout aa0239f41caf12a5a3dc0167b065fef71b75cfd4

Re: Gigaset Elements Cli - domoticz support

Posted: Wednesday 20 January 2021 21:09
by Arik2
Many Thanks. This version works for me.
However, there is one thing I don't understand. I have four plugs in my setup. In Domoticz, the on/off-status is displayed correctly, when I switch it via the Gigaset-app. When I switch it in Domoticz, the socket does not respond.
If I try to switch the plugs directly from the terminal with "gigasetelements-cli -g", I get a message in the log "Plug on", but I cannot specify which plug I want to switch, otherwise I could use this command and add to the button in Domoticz.
Can someone please help me and tell me the correct format how I can switch a plug specifically?

Re: Gigaset Elements Cli - domoticz support

Posted: Thursday 21 January 2021 10:05
by dynasticorpheus
As said I removed domoticz support but you can specify which plug to operate using the --sensorid option:

Code: Select all

gigasetelements-cli --plug off --sensorid 028E9147C0