Code Monkey home page Code Monkey logo

somecomfort-homie's Introduction

Somecomfort Homie

Homie 4 implementation of Honeywell Total Connect Comfort for North American models

Uses the somecomfort library (https://github.com/kk7ds/somecomfort)

Install on Raspberry Pi

pip3 install Somecomfort-Homie-4

To start as a service on raspbian

Create somecomfort_homie.yml in /etc

''' sudo nano /etc/somecomfort_homie.yml '''

Use the following settings:

somecomfort:
  username: 
  password: 

mqtt:
  MQTT_BROKER: Broker
  MQTT_PORT: 1883
  MQTT_USERNAME: null
  MQTT_PASSWORD: null

Create somecomfort-homie.service in /etc/systemd/system

''' sudo nano /etc/systemd/system/somecomfort-homie.service '''

[Unit]
Description=Somecomfort Homie
After=multi-user.target

[Service]
User=pi
Type=simple
ExecStart=/usr/bin/python3 /usr/local/bin/somecomfort_homie_start.py
Restart=on-abort

[Install]
WantedBy=multi-user.target

Copy somecomfort_homie_start.py to /usr/local/bin/

somecomfort-homie's People

Contributors

mjcumming avatar

Stargazers

 avatar

Watchers

 avatar  avatar

Forkers

minscof

somecomfort-homie's Issues

Initial Configuration Challenges

I'm not sure the best way to do this, but after spending a fair amount of time just getting the initial installation working, I thought I would share the problems I encountered and how I resolved them, in hopes that this will be helpful to a future traveler. I will admit upfront that I am not an experienced programmer, unless you count FORTRAN.

My set up is on a Raspberry Pi 4B, to which I connect via SSH. My intended use is with OpenHAB.

The problems I encountered:

  1. Copying somecomfort_homie_start.py to /usr/local/bin/. I first tried
    image. It took me a while to figure out that despite the RAW option being specified, this was download the html version. It was resolved by using:
    curl -o somecomfort_homie_start.py https://raw.githubusercontent.com/mjcumming/Somecomfort-Homie/master/somecomfort_homie_start.py
    To get the raw URL, I first logged into GitHub, clicked on the somecomfort_homie_start.py link, which displays the nicely colored html version. In the upper right hand corner, there is a RAW button. I pressed that and I got the plain text code with the URL that I used. Note that you need to be in the target folder on the Pi when you enter the curl command.

  2. The next problem I encountered was that somecomfort_homie_start.py could not find the .yml file. This error was fairly easy to find by entering systemd status somecomfort-homie.service. I fixed it by edited the .py file (sudo nano filename) and appending the folder, in my case /etc/ to the .yml file name.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.