Heaty will die, Schedy be born!

Correct this is the current content of my has_apps_loader.py which I download at 14:04

import os
import subprocess
BASE = os.path.join(os.path.dirname(__file__), "..")
WHEELSTORE = os.path.join(BASE, ".wheelstore")
SCRIPT = [
    "python3", os.path.join(BASE, "wheelstore.py"),
    "-w", WHEELSTORE, "-p", "pip3",
    "--pip-arg=--no-cache-dir",
    "--pip-arg=--disable-pip-version-check",
]
PACKAGES = [
    "wheel", "pip", "setuptools",
    "https://github.com/efficiosoft/hass-apps/archive/master.zip",
]
for pkg in PACKAGES:
    subprocess.call([*SCRIPT, "establish", pkg])
    subprocess.call([*SCRIPT, "--pip-arg=--upgrade", "install", pkg])


# This is just a stub which makes the app classes available for AppDaemon.
from hass_apps.loader import *

Let’s have one last try. I updated the loader again.

Its really an uphill battle :frowning: https://gist.github.com/taste66/c78f9369d728ba1471a4cf9b46043421#file-gistfile1-txt

Hang on, is that an ARM machine?

No just a x86 running at 64bit ubuntu 16.04
This is the output of uname -a
Linux webserver 4.4.0-141201901080420-generic #0+mediatree+hauppauge-Ubuntu SMP Tue Jan 8 19:56:47 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux

Then it doesn’t make sense to me that pip tries to compile cffi from source while there’s a wheel available.

i’am afraid that is way over my knowledge level to analyze this further.
Just tried it on a hass.io system running at a raspberry pi Zero which gives the same compiler error but I guess that is logical since this is an ARM.

Hm, would be interesting to know how the addon image compiles it when its built, but I have no time to investigate this at the moment.

No problem so far my connectivity stay’s okay :slight_smile:

Yeah, but it really is a severe issue.

What we can try is to force pip use a binary distribution for cffi explicitly… I think it’s worth a try. You’d need to update both wheelstore and the loader to try.

.Ok, that won’t work either.

I need to solve this differently. Packages that are already installed don’t need to be built into wheels at all. I’ll change the script to just download and cache the source distributions when there’s no wheel available, although this won’t happen today.

No problem take your time It is really fantastic how much effort you put in this. Thanks so far :+1:

Im getting quite far with the docs but would it be possible for you to upload a full opperating config so I could take a look at that? Would be very helpful to setup my own since my experience is still very limited.

@Jules_Bousema Schedy can be used for virtually anything, so there’s no universal config. You can take the sample config and just fill in your schedule and actors… that’s the way it’s supposed to be done at least.

Hi @Jules_Bousema
What kind of configuration are you looking for switch or thermostat. I can share some of mine but as @roschi say’s it is so flexible that there are many variations which all work good.

Hi @taste
Specifically one that controls thermostats, inputs from temperature sensors, input from presence detection like life360 or pir/radar sensors.
Anything that broaches any of those subjects would be immensely valuable!

@Jules_Bousema You can create the generic thermostat component from Homeassistant This gives you the temperature sensor as input and a switch as output. Schedy will just set the temperatures for this thermostat based upon your schedule. Here is a basic example I use for a seascout group (so heating only needed a a few moment per week in winter)

I advise to have a look and make sure you understand how it work. Make a few changes and check if they do what you expect. After this you can have a look at presence detection. I would use Homeassistant automation to set/reset a boolean and create an expression which set the temperature to a permanent value if nobody is present.
Just give it a go you will learn a lot while doing this :wink:

1 Like

@taste Thanks for sharing and commenting this room config, it utilizes sub-schedules really nicely with just static values and no expressions.

That example helps me a lot!

I just wanted to see a simple end result and how simple it is indeed!

Thanks a lot.

@Jules_Bousema You find a similar one in the docs as well: https://hass-apps.readthedocs.io/en/stable/apps/schedy/schedules/expressions/examples.html#conditional-sub-schedules-using-break