- Python 3
- Pip 3
$ brew install python3
ExceptionlessClient.Default.Configuration.AddPlugin<Ignore404sFromNonUsers>(); | |
[Priority(100)] | |
public class Ignore404sFromNonUsers : IEventPlugin { | |
public void Run(EventPluginContext ctx) { | |
if (!String.Equals(ctx.Event.Type, Event.KnownTypes.NotFound)) | |
return; | |
// Ignore any 404 that doesn't have user info. | |
ctx.Cancel = !ctx.Event.Data.ContainsKey(Event.KnownDataKeys.UserInfo); |
version: '3.7' | |
volumes: | |
double-take: | |
postgres-data: | |
services: | |
double-take: | |
container_name: double-take | |
image: jakowenko/double-take:1.4.1 |
blueprint: | |
name: Save a camera snapshot when motion is detected | |
description: Save a camera snapshot with archive when motion is detected | |
domain: automation | |
source_url: https://gist.github.com/niemyjski/08c566a4fe64fb2e70998ee4f38c9d1e | |
input: | |
motion_sensor: | |
name: Motion sensor | |
description: The sensor wich triggers the snapshot creation | |
selector: |
// Create our own client instance so we aren't conflicting if anyone else is using exceptionless in an addon. | |
private readonly ExceptionlessClient _client = new ExceptionlessClient(); | |
_client.Configuration.AddPlugin<IgnoreLicensingAndNonGeneratorExceptionsPlugin>(); | |
[Priority(30)] | |
private class IgnoreLicensingAndNonGeneratorExceptionsPlugin : IEventPlugin { | |
private static readonly List<string> _handledNamespaces = new List<string> { | |
"MyNamespace", | |
"MyThirdPartyDependencyNamespace" | |
}; |
blueprint: | |
name: Turn the switch on when motion is detected | |
description: Turn on a switch when motion is detected and Illuminance is low. | |
domain: automation | |
source_url: https://github.com/niemyjski/home-assistant-config/tree/master/blueprints/automation/niemyjski/motion_switch.yaml | |
input: | |
motion: | |
name: Motion Sensor | |
description: The motion sensor wich triggers the light to turn on | |
selector: |
blueprint: | |
name: Turn the light on when motion is detected | |
description: Turn on a light when motion is detected and Illuminance is low. | |
domain: automation | |
source_url: https://github.com/niemyjski/home-assistant-config/tree/master/blueprints/automation/niemyjski/motion_light.yaml | |
input: | |
motion: | |
name: Motion Sensor | |
description: The motion sensor wich triggers the light to turn on | |
selector: |
- badges: [] | |
cards: | |
- entity: weather.smartweather | |
name: Forecast | |
show_forecast: true | |
type: weather-forecast | |
- entities: | |
- entity: sensor.smartweather_wind_bearing | |
- entity: sensor.smartweather_wind_chill | |
- entity: sensor.smartweather_wind_direction |
import aiohttp | |
import asyncio | |
import requests | |
async def main(): | |
url = "http://IP_OF_SHOWER_CONTROLLER_HERE/values.cgi?_=1579384493390" | |
response = requests.get(url) | |
print(response.json()) |
I decided to share this snippet based on seeing what others were doing in this thread: https://www.reddit.com/r/homeassistant/comments/emvk9y/how_do_you_monitor_sensor_battery_levels_looking/
Basically dome device types of battery report the state in different locations and with different string
values that the change node or conditional logic just doesn't work nicely. Using the conditional logic on
this string state value might not be working fully how we think it is or at least didn't for me. When I was
debugging it and getting 10
outputted in a 100
bucket via the gt condition. The best way I've found to
handle these conditions is with a function node.