All Projects → pnbruckner → ha-illuminance

pnbruckner / ha-illuminance

Licence: Unlicense license
Home Assistant Illuminance Sensor

Programming Languages

python
139335 projects - #7 most used programming language

Projects that are alternatives of or similar to ha-illuminance

wyzesense2mqtt
Configurable WyzeSense to MQTT Gateway intended for use with Home Assistant or other platforms that use MQTT discovery mechanisms.
Stars: ✭ 55 (+3.77%)
Mutual labels:  home-assistant, homeassistant-sensor, homeassistant-integration
HomeAssistant-Tapo-Control
Control for Tapo cameras as a Home Assistant component
Stars: ✭ 327 (+516.98%)
Mutual labels:  home-automation, home-assistant, homeassistant-custom-component
thermal
Thermal Vision Sensor and Camera for Home Assistant
Stars: ✭ 43 (-18.87%)
Mutual labels:  homeassistant-sensor, homeassistant-integration, homeassistant-custom-component
home-assistant-config
🏠 Home Assistant Configuration & Documentation for my smart home using Node-RED for automations. Press ⭐ for notification of updates.
Stars: ✭ 34 (-35.85%)
Mutual labels:  home-automation, home-assistant
Openmqttgateway
MQTT gateway for ESP8266, ESP32, Sonoff RF Bridge or Arduino with bidirectional 433mhz/315mhz/868mhz, Infrared communications, BLE, Bluetooth, beacons detection, mi flora, mi jia, LYWSD02, LYWSD03MMC, Mi Scale, TPMS, BBQ thermometer compatibility, SMS & LORA.
Stars: ✭ 2,413 (+4452.83%)
Mutual labels:  home-automation, home-assistant
Home Assistant
Home-Assistant-Config
Stars: ✭ 182 (+243.4%)
Mutual labels:  home-automation, home-assistant
Itunes Api
🎵 A simple server providing a RESTful service for controlling iTunes
Stars: ✭ 166 (+213.21%)
Mutual labels:  home-automation, home-assistant
Homeassistant Config
Stars: ✭ 211 (+298.11%)
Mutual labels:  home-automation, home-assistant
Dsckeybusinterface
An Arduino/esp8266/esp32 library to directly interface with DSC security systems.
Stars: ✭ 202 (+281.13%)
Mutual labels:  home-automation, home-assistant
node-homeassistant
Node.js wrapper for the home-assistant websocket api
Stars: ✭ 27 (-49.06%)
Mutual labels:  home-automation, home-assistant
Smart Home
⭐ (Almost) everything needed to run my smart home with Home Assistant and more!
Stars: ✭ 221 (+316.98%)
Mutual labels:  home-automation, home-assistant
Home Assistant Config Fr
🏠Configuration de Home Assistant en français. 👨🏻‍💻 N'hésitez pas à ⭐ mon repo et à copier les bonnes idées ! 🇨🇵
Stars: ✭ 175 (+230.19%)
Mutual labels:  home-automation, home-assistant
Ha Dockermon
A NodeJS RESTful API which can be used with Home Assistant to report the state of Docker Containers
Stars: ✭ 171 (+222.64%)
Mutual labels:  home-automation, home-assistant
Ha Wyzeapi
Home Assistant Integration for Wyze Bulbs, Switches, Sensors and Lock
Stars: ✭ 187 (+252.83%)
Mutual labels:  home-automation, home-assistant
Homeassistant
Example Home Assistant Configs
Stars: ✭ 168 (+216.98%)
Mutual labels:  home-automation, home-assistant
Bruh2 Home Assistant Configuration
(OBSOLETE) BRUH2 Home Assistant Configuration
Stars: ✭ 205 (+286.79%)
Mutual labels:  home-automation, home-assistant
Locative Ios
[NOT MAINTAINED] The Locative iOS app. Helping you to get the best out of your automated home, geofencing, iBeacons at your hand.
Stars: ✭ 213 (+301.89%)
Mutual labels:  home-automation, home-assistant
Node Red Contrib Home Assistant Websocket
Node-RED integration with Home Assistant Core
Stars: ✭ 222 (+318.87%)
Mutual labels:  home-automation, home-assistant
Feature Requests
ESPHome Feature Request Tracker
Stars: ✭ 160 (+201.89%)
Mutual labels:  home-automation, home-assistant
Garhage
a Home-Automation-friendly ESP8266-based MQTT Garage Door Controller
Stars: ✭ 163 (+207.55%)
Mutual labels:  home-automation, home-assistant

Illuminance Sensor

Estimates outdoor illuminance based on either sun elevation or time of day. In either case, the value is adjusted based on current weather conditions.

Modes of operation

Two modes are available: normal & simple. The desired mode is selected via the configuration.

Normal mode - Sun elevation

This mode uses an algorithm from the US Naval Observatory1 for estimating sun illuminance based on the sun's elevation (aka altitude.) The maximum value is about 150,000 lx. Below is an example of what that might look like over a three day period.

Simple mode - Time of day

At night the value is 10 lx. From a little before sunrise to a little after the value is ramped up to whatever the current conditions indicate. The same happens around sunset, except the value is ramped down. The maximum value is 10,000 lx. Below is an example of what that might look like over a three day period.

Supported weather sources

The following sources of weather data are supported:

Setup

Follow the installation instructions below. Then add the desired configuration. Here is an example of a typical configuration:

sensor:
  - platform: illuminance
    entity_id: weather.home

Installation

Manual

Place a copy of:

__init__.py at <config>/custom_components/illuminance/__init__.py
sensor.py at <config>/custom_components/illuminance/sensor.py
manifest.json at <config>/custom_components/illuminance/manifest.json

where <config> is your Home Assistant configuration directory.

NOTE: Do not download the file by using the link above directly. Rather, click on it, then on the page that comes up use the Raw button.

With HACS

You can use HACS to manage installation and updates by adding this repo as a custom repository and then searching for and installing the "Illuminance" integration.

Configuration variables

  • entity_id: Entity ID of entity that indicates current weather conditions. See examples below.
  • mode (Optional): Mode of operation. Choices are normal (default) which uses sun elevation, and simple which uses time of day.
  • name (Optional): Name of the sensor. Default is Illuminance.
  • scan_interval (Optional): Update interval. Minimum is 5 minutes. Default is 5 minutes.

Examples

Dark Sky Sensor

sensor:
  - platform: darksky
    api_key: !secret ds_api_key
    monitored_conditions:
      - icon
  - platform: illuminance
    name: DSS Illuminance
    entity_id: sensor.dark_sky_icon

Dark Sky Weather

weather:
  - platform: darksky
    api_key: !secret ds_api_key
sensor:
  - platform: illuminance
    name: DSW Illuminance
    entity_id: weather.dark_sky

Met.no, AccuWeather or ecobee

sensor:
  - platform: illuminance
    name: Estimated Illuminance
    entity_id: weather.home

OpenWeatherMap

sensor:
  - platform: illuminance
    name: Estimated Illuminance
    entity_id: weather.openweathermap

Releases Before 2.1.0

See https://github.com/pnbruckner/homeassistant-config/blob/master/docs/illuminance.md.

Footnotes

  1. Janiczek, P. M., and DeYoung, J. A. Computer Programs for Sun and Moon Illuminance With Contingent Tables and Diagrams. Circular No. 171. Washington, D. C.: United States Naval Observatory, 1987 Google Scholar

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].