How can I replace a device?

Topics (not sure which fora)
when not sure where to post, post here and mods will move it to right forum.

Moderators: leecollings, remb0

Post Reply
User avatar
wolph
Posts: 16
Joined: Sunday 13 September 2015 16:12
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

How can I replace a device?

Post by wolph »

Is there any way to replace a switch with a different (unassigned) one?
Due to broken hardware and house layout changes I need to switch some devices around at times and it seems impossible to replace the device within domoticz. Any replacement requires modifying all scripts, scenes, groups and timers that are linked to the device which is a bit of a drag.

I know there are some possibilities for sensors, but I'm looking for a solution for switches.
Relevant reading for sensors: viewtopic.php?t=3448
simonrg
Posts: 329
Joined: Tuesday 16 July 2013 22:54
Target OS: Raspberry Pi / ODroid
Domoticz version: 3.8807
Location: North East England
Contact:

Re: How can I replace a device?

Post by simonrg »

I guess what you are trying to do is keep the log history for your old device alternatively scripts other than Lua or Blockly within Domoticz.

In terms of just replacing devices so they work in Lua or Blockly scripts without having to change the script, it is just a matter of deleting the old device and then creat a new device with the old device's name. Scripts work on names rather than indexes, so will work with the new devices with the same name.

Other scripting langagues outside Domoticz you would need to look up the new idx.
Raspberry Pi 2 B - 2A@5V PSU - Raspbian + Domoticz + RFXtrx(89), LightwaveRF House(dimmers, sockets, wireless/mood switches), Owl CM113, 4 LaCross Temp / Humidity Sensors, 4 Siemens PIR, Smappee, Solaredge, ESP8266
User avatar
wolph
Posts: 16
Joined: Sunday 13 September 2015 16:12
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: How can I replace a device?

Post by wolph »

Great to hear that the Lua and Blockly scripts are not an issue but that still leaves the scenes, groups and schedules.

Ideally I would just like to replace all references to a specific ID or replace the underlying device for a specific ID.
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest