Shutdown domoticz pi
Moderator: leecollings
-
- Posts: 69
- Joined: Wednesday 05 November 2014 10:14
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Location: Netherlands
- Contact:
Shutdown domoticz pi
Hello,
Maybe its in the wrong subforum, excuse me for that but I dont know exactly what should then be the right one.
I would like to create a shutdown switch, to shutdown the rpi with domoticz itself. I dont know if that is possible, but its also shitty to shut it down by a command (sudo poweroff) as I dont have a display/keyboard on the pi.
Is it possible to do that and how?
Maybe its in the wrong subforum, excuse me for that but I dont know exactly what should then be the right one.
I would like to create a shutdown switch, to shutdown the rpi with domoticz itself. I dont know if that is possible, but its also shitty to shut it down by a command (sudo poweroff) as I dont have a display/keyboard on the pi.
Is it possible to do that and how?
Raspberry Pi 2 model B with domoticz
OMV NAS installed on thin client HP T610
Openelec Kodi Mediaplayer on thin client HP T520 (and with multiboot windows 10)
OMV NAS installed on thin client HP T610
Openelec Kodi Mediaplayer on thin client HP T520 (and with multiboot windows 10)
-
- Posts: 23
- Joined: Thursday 03 March 2016 11:01
- Target OS: Windows
- Domoticz version: V3.4964
- Location: Germany
- Contact:
Re: Shutdown domoticz pi
why don't you just ssh into your pi like the rest of the world? 

Windows Server, Aeotec Z-Stick Gen5, V3.4964
-
- Posts: 69
- Joined: Wednesday 05 November 2014 10:14
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Location: Netherlands
- Contact:
Re: Shutdown domoticz pi
Well, because I have to start my laptop, and so on.
Its easier to do it by the domoticz app on my phone. Why not automate it.
Its easier to do it by the domoticz app on my phone. Why not automate it.
Raspberry Pi 2 model B with domoticz
OMV NAS installed on thin client HP T610
Openelec Kodi Mediaplayer on thin client HP T520 (and with multiboot windows 10)
OMV NAS installed on thin client HP T610
Openelec Kodi Mediaplayer on thin client HP T520 (and with multiboot windows 10)
-
- Posts: 169
- Joined: Wednesday 30 September 2015 11:50
- Target OS: Raspberry Pi / ODroid
- Domoticz version: v3.8975
- Location: United Kingdom
- Contact:
Re: Shutdown domoticz pi
Yes, it is possible. You have to come up with your own script (as demon) and as soon as you issue a command, which can be adopted as a virtual sensor in Domoticz, RPI will be reboot/shutdown.
Please see below:
https://lowpowerlab.com/guide/atxraspi/
Please see below:
https://lowpowerlab.com/guide/atxraspi/
- Egregius
- Posts: 2589
- Joined: Thursday 09 April 2015 12:19
- Target OS: Linux
- Domoticz version: v2024.7
- Location: Beitem, BE
- Contact:
Re: Shutdown domoticz pi
Code: Select all
http://192.168.2.10:8084/json.htm?type=command¶m=system_shutdown
-
- Posts: 666
- Joined: Thursday 02 October 2014 6:36
- Target OS: Raspberry Pi / ODroid
- Domoticz version: 2022.2
- Location: Geleen
- Contact:
Re: Shutdown domoticz pi
I have a reboot button on my frontpage.
-
- Posts: 69
- Joined: Wednesday 05 November 2014 10:14
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Location: Netherlands
- Contact:
Re: Shutdown domoticz pi
Where in which gui do yo see this?Egregius wrote:should do it as that is the url that the www gui calls.Code: Select all
http://192.168.2.10:8084/json.htm?type=command¶m=system_shutdown
I cant find it in the webgui of domoticz?
Raspberry Pi 2 model B with domoticz
OMV NAS installed on thin client HP T610
Openelec Kodi Mediaplayer on thin client HP T520 (and with multiboot windows 10)
OMV NAS installed on thin client HP T610
Openelec Kodi Mediaplayer on thin client HP T520 (and with multiboot windows 10)
- Egregius
- Posts: 2589
- Joined: Thursday 09 April 2015 12:19
- Target OS: Linux
- Domoticz version: v2024.7
- Location: Beitem, BE
- Contact:
Re: Shutdown domoticz pi
I have a restart and shutdown option in the menu.
Then used feveloper view of my browser to see the url.
Then used feveloper view of my browser to see the url.
-
- Posts: 69
- Joined: Wednesday 05 November 2014 10:14
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Location: Netherlands
- Contact:
Re: Shutdown domoticz pi
Ok but I dont, domoticz is running on a rpi.
How can I get that options?
How can I get that options?
Raspberry Pi 2 model B with domoticz
OMV NAS installed on thin client HP T610
Openelec Kodi Mediaplayer on thin client HP T520 (and with multiboot windows 10)
OMV NAS installed on thin client HP T610
Openelec Kodi Mediaplayer on thin client HP T520 (and with multiboot windows 10)
-
- Posts: 666
- Joined: Thursday 02 October 2014 6:36
- Target OS: Raspberry Pi / ODroid
- Domoticz version: 2022.2
- Location: Geleen
- Contact:
Re: Shutdown domoticz pi
Hm, I run domoticz on a pi. The restart in somewhere in the lower part of the settings menu
-
- Posts: 69
- Joined: Wednesday 05 November 2014 10:14
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Location: Netherlands
- Contact:
Re: Shutdown domoticz pi
I found it now, on my laptop resolution 1366x768 the bottom of the options menu are not visible.
I connected a larger external screen and now I see them.
In the dev view the link is this: <a id="cShutdown" href="javascript:SwitchLayout('Shutdown')"><img src="images/shutdown.png"> <span data-i18n="Shutdown System">Computer afsluiten</span></a>
How can I use this on a switch, it cant because its html ...
I connected a larger external screen and now I see them.
In the dev view the link is this: <a id="cShutdown" href="javascript:SwitchLayout('Shutdown')"><img src="images/shutdown.png"> <span data-i18n="Shutdown System">Computer afsluiten</span></a>
How can I use this on a switch, it cant because its html ...
Raspberry Pi 2 model B with domoticz
OMV NAS installed on thin client HP T610
Openelec Kodi Mediaplayer on thin client HP T520 (and with multiboot windows 10)
OMV NAS installed on thin client HP T610
Openelec Kodi Mediaplayer on thin client HP T520 (and with multiboot windows 10)
- Egregius
- Posts: 2589
- Joined: Thursday 09 April 2015 12:19
- Target OS: Linux
- Domoticz version: v2024.7
- Location: Beitem, BE
- Contact:
Re: Shutdown domoticz pi
The link is as I posted it earlier.
You need to open the network tab of develover view and click the button to see the action.

Just a normal switch command in the screenshot, shutdown url posted above
You need to open the network tab of develover view and click the button to see the action.

Just a normal switch command in the screenshot, shutdown url posted above
-
- Posts: 666
- Joined: Thursday 02 October 2014 6:36
- Target OS: Raspberry Pi / ODroid
- Domoticz version: 2022.2
- Location: Geleen
- Contact:
Re: Shutdown domoticz pi
The info is also in wiki as far as I remember
-
- Posts: 69
- Joined: Wednesday 05 November 2014 10:14
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Location: Netherlands
- Contact:
Re: Shutdown domoticz pi
ok, i created a switch, push off button and gave it an off action http://192.168.1.14/json.htm?type=comma ... m_shutdown
But nothing happens...
But nothing happens...
Raspberry Pi 2 model B with domoticz
OMV NAS installed on thin client HP T610
Openelec Kodi Mediaplayer on thin client HP T520 (and with multiboot windows 10)
OMV NAS installed on thin client HP T610
Openelec Kodi Mediaplayer on thin client HP T520 (and with multiboot windows 10)
- Egregius
- Posts: 2589
- Joined: Thursday 09 April 2015 12:19
- Target OS: Linux
- Domoticz version: v2024.7
- Location: Beitem, BE
- Contact:
Re: Shutdown domoticz pi
Logfile? Authentication?
-
- Posts: 69
- Joined: Wednesday 05 November 2014 10:14
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Location: Netherlands
- Contact:
Re: Shutdown domoticz pi
I only get these :
I have to log in, in my webgui.
Code: Select all
2016-10-19 20:34:35.928 Error: Error opening url: http://192.168.1.14/json.htm?type=command¶m=system_reboot
Raspberry Pi 2 model B with domoticz
OMV NAS installed on thin client HP T610
Openelec Kodi Mediaplayer on thin client HP T520 (and with multiboot windows 10)
OMV NAS installed on thin client HP T610
Openelec Kodi Mediaplayer on thin client HP T520 (and with multiboot windows 10)
- Egregius
- Posts: 2589
- Joined: Thursday 09 April 2015 12:19
- Target OS: Linux
- Domoticz version: v2024.7
- Location: Beitem, BE
- Contact:
Re: Shutdown domoticz pi
Something is wrong with your url. 'Param' got replaced.
-
- Posts: 69
- Joined: Wednesday 05 November 2014 10:14
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Location: Netherlands
- Contact:
Re: Shutdown domoticz pi
yeah I dont know why, @ the action is really typed http://192.168.1.14/json.htm?type=comma ... m_shutdown
Raspberry Pi 2 model B with domoticz
OMV NAS installed on thin client HP T610
Openelec Kodi Mediaplayer on thin client HP T520 (and with multiboot windows 10)
OMV NAS installed on thin client HP T610
Openelec Kodi Mediaplayer on thin client HP T520 (and with multiboot windows 10)
-
- Posts: 69
- Joined: Wednesday 05 November 2014 10:14
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Location: Netherlands
- Contact:
Re: Shutdown domoticz pi
Its solved, i'm really shaming myself, I forgot the :8080 port in the url.
Raspberry Pi 2 model B with domoticz
OMV NAS installed on thin client HP T610
Openelec Kodi Mediaplayer on thin client HP T520 (and with multiboot windows 10)
OMV NAS installed on thin client HP T610
Openelec Kodi Mediaplayer on thin client HP T520 (and with multiboot windows 10)
Who is online
Users browsing this forum: No registered users and 0 guests