pavoni / home-assistant-custom-components Goto Github PK
View Code? Open in Web Editor NEWcustom components for home-assistant
custom components for home-assistant
iBeacons and a a mobile allow you to know not just where you are, but whether you are close to an iBeacon.
This can be used with a stationary iBeacon to just enhance our current device_tracking.
But there is at least one more case with mobile iBeacons tht might be useful.
If I arrive home by foot - I don't want HA to open my gate. But if I arrive home in the car I do.
So If I put an IBeacon in my car - OwnTracks will know what I'm in the 'car' region (and can tell HA).
OwnTracks will also update HA on my location as usual.
So to support this I think we'd need a new type of location which supports presence - but only based on enter/exit events - not based on location. Thoughts?
PS There are other use cases. If you put an iBeacon on your keys - you want to know the `key beacon exit' event - and have it trigger a HA notification to tell you you've forgotten your keys - and where you were when you forgot them..
Check lights are already on before triggering scene.
Perhaps switch to use a script
Sometime gate doesn't open fully.
Could do
If closed:
toggle_switch
sleep(x)
toggle_switch
sleep(y)
toggle_switch
y is pretty short - perhaps 1 sec
x is more like 20 secs - but check by timing gate.
Like automations
Custom switch 'Greg trip'
Normally off
Turn on - check gates are closed - refuses to engage if they are open
opens gates, enables geofence for greg's phone
Exit home geofence closes gate
Enter bethnalgreen geofence opens gate
turn off - closes gate - disables geofence
15-11-30 00:29:01 pywemo.ssdp: Error fetching description at http://192.168.1.254:1780/WFADevice.xml
Traceback (most recent call last):
File "c:\Python34\lib\site-packages\requests\packages\urllib3\connection.py", line 135, in _new_conn
(self.host, self.port), self.timeout, **extra_kw)
File "c:\Python34\lib\site-packages\requests\packages\urllib3\util\connection.py", line 90, in create_connection
raise err
File "c:\Python34\lib\site-packages\requests\packages\urllib3\util\connection.py", line 80, in create_connection
sock.connect(sa)
socket.timeout: timed out
Order extra light switches.
See if this creates room for blind controller.
3 doubles
4 singles
4 single blanking plates
2 3 way switches
Can't know if skylight is close.
But no need to close multiple times at night.
Avoid closing in winter / when cold?
Required more thought.
Automation on temperature
When home-assistant/core#897 is merged.
Traceback (most recent call last):
File "c:\users\greg\home-assistant\homeassistant\core.py", line 820, in job_handler
func(arg)
File "c:\users\greg\home-assistant\homeassistant\helpers\event.py", line 135, in pattern_time_change_listener
action(now)
File "c:\users\greg\home-assistant\homeassistant\helpers\entity_component.py", line 121, in _update_entity_states
entity.update_ha_state(True)
File "c:\users\greg\home-assistant\homeassistant\helpers\entity.py", line 99, in update_ha_state
self.update()
File "c:\users\greg\home-assistant\homeassistant\components\sensor\efergy.py", line 87, in update
self._state = response.json()['reading'] / 1000
KeyError: 'reading'
Traceback (most recent call last):
File "c:\users\greg\home-assistant\homeassistant\core.py", line 820, in job_handler
func(arg)
File "c:\users\greg\home-assistant\homeassistant\helpers\event.py", line 135, in pattern_time_change_listener
action(now)
File "c:\users\greg\home-assistant\homeassistant\helpers\entity_component.py", line 121, in update_entity_states
entity.update_ha_state(True)
File "c:\users\greg\home-assistant\homeassistant\helpers\entity.py", line 101, in update_ha_state
state = str(self.state)
File "c:\users\greg\home-assistant\homeassistant\components\thermostat__init_.py", line 136, in state
return self.target_temperature or STATE_UNKNOWN
File "c:\users\greg\home-assistant\homeassistant\components\thermostat\nest.py", line 108, in target_temperature
target = self.device.target
File "c:\Python34\lib\site-packages\nest\nest.py", line 452, in target
if self._shared['target_temperature_type'] == 'range':
File "c:\Python34\lib\site-packages\nest\nest.py", line 282, in _shared
return self._nest_api._status['shared'][self._serial]
File "c:\Python34\lib\site-packages\nest\nest.py", line 725, in _status
response = self._session.get(url)
File "c:\Python34\lib\site-packages\requests\sessions.py", line 480, in get
return self.request('GET', url, *_kwargs)
File "c:\Python34\lib\site-packages\requests\sessions.py", line 468, in request
resp = self.send(prep, *_send_kwargs)
File "c:\Python34\lib\site-packages\requests\sessions.py", line 576, in send
r = adapter.send(request, **kwargs)
File "c:\Python34\lib\site-packages\requests\adapters.py", line 423, in send
raise ConnectionError(e, request=request)
With subscriptions can count on HA to turn off, so could use insight sensing to change light colours.
Make it sensitive to the other lamp state - rather than just turning the light off.
+2.5 good to lights on
Tidy up blind open close if all working.
Would allow replacement of some custom maker components.
Icons
blinds
coffee
car (for gate)
window-closed (for skylight)
human-male-female
music-note (for system line)
speaker (for pre-amp
weather-cloudy (for rain sensor)
brightness-4 ro 7 for scenes
sleep for bedtime
brightness-2 for off
Traceback (most recent call last):
File "c:\users\greg\home-assistant\homeassistant\core.py", line 820, in job_handler
func(arg)
File "c:\users\greg\home-assistant\homeassistant\helpers\event.py", line 134, in pattern_time_change_listener
action(now)
File "c:\users\greg\home-assistant\homeassistant\helpers\entity_component.py", line 104, in update_entity_states
entity.update_ha_state(True)
File "c:\users\greg\home-assistant\homeassistant\helpers\entity.py", line 99, in update_ha_state
self.update()
File "c:\users\greg\home-assistant\homeassistant\components\switch\vera.py", line 130, in update
self.is_on_status = self.vera_device.is_switched_on()
File "c:\Python34\lib\site-packages\pyvera__init_.py", line 263, in is_switched_on
self.refresh_value('Status')
File "c:\Python34\lib\site-packages\pyvera__init__.py", line 212, in refresh_value
r = requests.get(requestUrl, params=payload)
File "c:\Python34\lib\site-packages\requests\api.py", line 69, in get
return request('get', url, params=params, *_kwargs)
File "c:\Python34\lib\site-packages\requests\api.py", line 50, in request
response = session.request(method=method, url=url, *_kwargs)
File "c:\Python34\lib\site-packages\requests\sessions.py", line 468, in request
resp = self.send(prep, *_send_kwargs)
File "c:\Python34\lib\site-packages\requests\sessions.py", line 576, in send
r = adapter.send(request, *_kwargs)
File "c:\Python34\lib\site-packages\requests\adapters.py", line 423, in send
raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='192.168.1.161', port=3480): Max retries exceeded with url: //data_request?Variable=Status&DeviceNum=26&serviceId=urn%3Aupnp-org%3AserviceId%3ASwitchPower1&id=variableget&output_format=json (Caused by NewConnectionError('<requests.packages.urllib3.connection.HTTPConnection object at 0x06DD02F0>: Failed to establish a new connection: [WinError 10060] A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond',))
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.