imcfarla2003 / domoticz-hive

Domoticz plugin for Hive
MIT License
4 stars 3 forks source link

BOOST/OFF/SCHEDULE support #5

Open peteralm097 opened 6 years ago

peteralm097 commented 6 years ago

Loving this plugin! Looking for a way to use a selector switch to change the state of the devices

Heating [ OFF/SCHEDULE/BOOST/HOLIDAY] Hot Water [ OFF/SCHEDULE/BOOST/HOLIDAY]

I did once find the node references in the API for these and I had it working in a basic script - am happy to contribute some technical knowledge if required

imcfarla2003 commented 6 years ago

I've been trying to work out a good way for these to be shown in Domoticz. Boost would need a temperature as would Holiday (I don't think there is a combined selector/temp switch in Domoticz) whereas Schedule and Off do not. I have to admit I have my heating schedule in Hive rather than in Domoticz so I just treat Domoticz as a monitoring system for heating.

Any comments/suggestions welcome.

mehtadone commented 5 years ago

@imcfarla2003 It is an interest question you raised there. I'm going to try setup you plugin later today, previously I used the api directly but it was pretty flacky. For the heating/water, these were my use cases/ideas:

  1. For heating and water boost, I had hard coded a minutes for boot in the script. And then create a switch for the boost. I had to automatically switch it off after the time set though.

  2. I used to use Schedule in Hive for water and heating, but the heating / water went off automatically if I activated my holiday scene in Domo.

  3. I did also try a beacon style automation for the heating. If I was not home, it switched off and when I came close, it switched on again. My schedule isn't the same every day so it did work pretty well.

I hope that helps with some ideas on how it could be implemented in your plugin