jay (support) wrote:Any other approach would require writing a script.
A script is preferred, since I need to learn Python and how to use it with Indigo anyways. I want to both modify the temperature setting and turn the system off as double insurance against failure of one or the other. This is to avoid setting a new electrical demand level. I have a script written and tested. The problem I am having is I need Indigo to get the latest status from the Thermostat before the rest of my script executes. Likely an easy thing to do. I just haven't found the command yet. Here is what I have so far:
- Code: Select all
# schedule the below to run at 3 pm weekdays (high power rates)
frontTherm = indigo.devices[1045487200]
# need a line here to get the up-to-the-second data from the thermostat
# otherwise it seems the data is from last time the thermostat was polled
frontThermSavedMode = frontTherm.hvacMode
indigo.thermostat.setHvacMode(1045487200, value=indigo.kHvacMode.Off)
# schedule the below to run at 8 pm weekdays (low power rates)
if frontThermSavedMode == "Cool":
indigo.thermostat.setHvacMode(1045487200, value=indigo.kHvacMode.Cool)
elif frontThermSavedMode == "Heat":
indigo.thermostat.setHvacMode(1045487200, value=indigo.kHvacMode.Heat)
elif frontThermSavedMode == "HeatCool":
indigo.thermostat.setHvacMode(1045487200, value=indigo.kHvacMode.HeatCool)
else:
indigo.thermostat.setHvacMode(1045487200, value=indigo.kHvacMode.Off)
Things accomplished since my last post 2 days ago:
- included and tested DOME DMS01 Siren successfully (I can turn the siren on and off, I need to figure out how to operate any of it's 10 different chimes as well ... help please)
- included and tested DOME DMWS1 Leak Detector successfully
- included and tested ZOOZ ZSE40 4-in-1 sensor after "mashing" with the paper clip continuously as recommended elsewhere on the forum
- included Ring Contact Sensor successfully ... no Indigo device definition so it is not working ... I have contacted Ring to see if I can get the specification to parse the Z-Wave communication
- removed failed modules from controller (that took me multiple attempts to include)
- installed and deployed the Door Locks Manager plugin (connected to my Kwikset 910 and al is working beautifully)
- purchased my Indigo license ... I am committed now
- set up my reflector
- connected to Indigo server using a web browser (indigo Touch)
- connected to Indigo server using Indigo Touch on my iPhone 8+ running iOS 12.1.2
- read the Indigo Object Model Reference v2.0
- read the Indigo Scripting Tutorial
- read the Indigo 7 v7.0.0 forum topic re Python
- played quite a bit with Python scripting to see what info I could get from the server re devices etc
- wrote and tested the above script
I have purchased and tested many different Z-Wave devices so I can ultimately make a decision on which are my preferred devices going forward. I have 2 more devices coming. A Ring Keypad. And an AEOTEC Smart Switch 6. As mentioned in my first post I have over 120 devices deployed on 3 Iris systems. After the hell of Iris I want to do my best to choose devices carefully.
I am ahead of schedule. I need to have this system deployed by March 8. I have another home that is on Iris as well so I will be heading there March 8 to deploy Indigo (a second licensed server).
I am currently doing all of the development and testing on my MBP with macOS High Sierra 10.13.6. I will need to figure out how to move the Server and license over to another computer here at this house. I have already found the instructions for moving the license so I don't see any big issues coming.
I currently have iMacs running High Sierra at both houses. I could use them to run Indigo. However, I would rather do so on a separate computer. I have looked at the new Mac Mini:
3.6GHz quad-core 8th-generation Intel Core i3 processor
8GB 2666MHz DDR4 memory
Intel UHD Graphics 630
128GB PCIe-based SSD storage
$799.00
I can get a refurbished unit for $679 and save $120. However, I believe it will come preloaded with macOS 10.14 Mojave. I see there are warnings about compatibility with Mojave. Is anyone running indigo with Mojave successfully? Otherwise I need to look for used Mac Minis.
Cheers
John