Hello,
I have two pi's active in the same network. Is it possible to use, through a script for example, a switch on the other pi?
Grz.Piet
Use switch second pi
Moderators: leecollings, remb0
-
- Posts: 33
- Joined: Wednesday 22 July 2015 21:39
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Contact:
Re: Use switch second pi
YES
Code: Select all
if WP.active and Pomp.state == 'Off' and SensorDT.temperature > 0 then
domoticz.openURL('http://IP_OTHER:8080/json.htm?type=command¶m=switchlight&idx=49&switchcmd=On')
- Bospieper
- Posts: 166
- Joined: Thursday 07 November 2019 10:26
- Target OS: Raspberry Pi / ODroid
- Domoticz version: 2022.1
- Location: NL
- Contact:
Re: Use switch second pi
Thanx I will try
- Bospieper
- Posts: 166
- Joined: Thursday 07 November 2019 10:26
- Target OS: Raspberry Pi / ODroid
- Domoticz version: 2022.1
- Location: NL
- Contact:
Re: Use switch second pi
Hello,
It works!
Next question: is it possible to use the command .afterMin() to build in a delay?
Grz Piet
It works!
Next question: is it possible to use the command .afterMin() to build in a delay?
Grz Piet
-
- Posts: 504
- Joined: Sunday 01 November 2015 22:45
- Target OS: Raspberry Pi / ODroid
- Domoticz version: 2023.2
- Location: Twente
- Contact:
Re: Use switch second pi
Domoticz remote is a great way of sharing.
You can choose which devices are shown in the other domoticz instance.
https://wiki.domoticz.com/Setting_up_Device_sharing
You can choose which devices are shown in the other domoticz instance.
https://wiki.domoticz.com/Setting_up_Device_sharing
Bugs bug me.
-
- Posts: 33
- Joined: Wednesday 22 July 2015 21:39
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Contact:
Re: Use switch second pi
Try and you will know. Let us know.
-
- Posts: 33
- Joined: Wednesday 22 July 2015 21:39
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Contact:
Re: Use switch second pi
Also possible, but that was not the original question.HvdW wrote: ↑Sunday 08 December 2024 9:41 Domoticz remote is a great way of sharing.
You can choose which devices are shown in the other domoticz instance.
https://wiki.domoticz.com/Setting_up_Device_sharing
If the delay doesn't work, then slave/remote is an option with the delay.
- waltervl
- Posts: 5148
- Joined: Monday 28 January 2019 18:48
- Target OS: Linux
- Domoticz version: 2024.7
- Location: NL
- Contact:
Re: Use switch second pi
I also think that device sharing between 2 Domoticz servers is exactly what the topic starter should use to switch a device on another Domoticz server.BazemanKM wrote: ↑Monday 09 December 2024 18:54Also possible, but that was not the original question.HvdW wrote: ↑Sunday 08 December 2024 9:41 Domoticz remote is a great way of sharing.
You can choose which devices are shown in the other domoticz instance.
https://wiki.domoticz.com/Setting_up_Device_sharing
If the delay doesn't work, then slave/remote is an option with the delay.
Domoticz running on Udoo X86 (on Ubuntu)
Devices/plugins: ZigbeeforDomoticz (with Xiaomi, Ikea, Tuya devices), Nefit Easy, Midea Airco, Omnik Solar, Goodwe Solar
Devices/plugins: ZigbeeforDomoticz (with Xiaomi, Ikea, Tuya devices), Nefit Easy, Midea Airco, Omnik Solar, Goodwe Solar
Who is online
Users browsing this forum: No registered users and 1 guest