itchannel / apex-ha

Local Neptune Apex HA Integration (Aquarium Controller)
GNU General Public License v3.0
19 stars 3 forks source link

Consider: support some template controls from Apex #22

Open brettonw opened 1 year ago

brettonw commented 1 year ago

Apex has a few pre-built controls that you could explicitly support, for instance a temperature control. From the "config":

{
name: "Heater_2_4",
icon: "Thermometer",
ctype: "Heater",
log: false,
inuse: true,
type: "outlet",
did: "2_4",
gid: "",
gtype: "0",
ID: "12",
prog: "Fallback OFF 
If Tmp < 79.9 Then ON 
If Tmp > 80.1 Then OFF 
",
extra: { }
},

The heater outlet has a program attached to it, and it is specified as ctype: heater. I kind of think the point of exposing the Neptune to HA is to take control of the outlets using a richer command structure, but some stuff just doesn't need to be taken over. I can replicate the Neptune control in HA, or I could simply send a new prog value to the control with my own min/max values.

itchannel commented 1 year ago

Apex has a few pre-built controls that you could explicitly support, for instance a temperature control. From the "config":

{
name: "Heater_2_4",
icon: "Thermometer",
ctype: "Heater",
log: false,
inuse: true,
type: "outlet",
did: "2_4",
gid: "",
gtype: "0",
ID: "12",
prog: "Fallback OFF 
If Tmp < 79.9 Then ON 
If Tmp > 80.1 Then OFF 
",
extra: { }
},

The heater outlet has a program attached to it, and it is specified as ctype: heater. I kind of think the point of exposing the Neptune to HA is to take control of the outlets using a richer command structure, but some stuff just doesn't need to be taken over. I can replicate the Neptune control in HA, or I could simply send a new prog value to the control with my own min/max values.

Definitely something to consider adding down the line but could be quite a bit of work :)