updating configuration
This commit is contained in:
@@ -5,7 +5,7 @@ ARGS = `arg="$(filter-out $@,$(MAKECMDGOALS))" && echo $${arg:-${1}}`
|
||||
update_secrets_sample:
|
||||
@echo "Masking passwords..."
|
||||
#hass
|
||||
@cat hass/settings/secrets.yaml | sed "s/\:.*/\: xxxxxxxxx/g" > hass/settings/secrets.yaml.sample #mask passwords
|
||||
@cat secrets/hass/settings/secrets.yaml | sed "s/\:.*/\: xxxxxxxxx/g" > hass/settings/secrets.yaml.sample #mask passwords
|
||||
@sed -i "s/latitude:.*/latitude: 1.0/g" hass/settings/secrets.yaml.sample #must be a number
|
||||
@sed -i "s/longitude:.*/longitude: 1.0/g" hass/settings/secrets.yaml.sample #must be a number
|
||||
@sed -i "s/aqara1_mac:.*/aqara1_mac: xxxxxxxxxxxx/g" hass/settings/secrets.yaml.sample #len 12
|
||||
@@ -29,16 +29,7 @@ update_secrets_sample:
|
||||
|
||||
@cat zigbee2mqtt/settings/configuration.yaml | sed "s/\:.*/\: xxxxxxxxx/g" > zigbee2mqtt/settings/configuration.yaml.sample #mask passwords
|
||||
|
||||
copy_secrets:
|
||||
@echo "Copying secrets"
|
||||
@cp hass/settings/secrets.yaml secrets/hass/settings/secrets.yaml
|
||||
@cd secrets
|
||||
@git add .
|
||||
@git diff-index --quiet HEAD || git commit -m "secrets update"
|
||||
@git push
|
||||
@cd ../
|
||||
|
||||
commit: copy_secrets update_secrets_sample
|
||||
commit: update_secrets_sample
|
||||
git add .
|
||||
git diff-index --quiet HEAD || git commit -m "$(call ARGS,\"updating configuration\")"
|
||||
git push
|
||||
|
||||
@@ -6,13 +6,5 @@ kitchen_led_controller:
|
||||
class: KitchenLedController
|
||||
watch_entity: light.kitchen
|
||||
topic: home/kitchen-led/kitchen-led/state/set
|
||||
global_dependencies:
|
||||
- globals
|
||||
|
||||
bath_led_controller:
|
||||
module: kitchen_led_controller
|
||||
class: KitchenLedController
|
||||
watch_entity: light.bath
|
||||
control_entity: light.philips_led
|
||||
global_dependencies:
|
||||
- globals
|
||||
@@ -50,17 +50,17 @@ water_sensor:
|
||||
global_dependencies:
|
||||
- globals
|
||||
|
||||
water_sender:
|
||||
class: WaterCounterSender
|
||||
module: mosru
|
||||
entity_ids:
|
||||
hot: sensor.counter_hot
|
||||
cold: sensor.counter_cold
|
||||
app: mosru_client
|
||||
dependencies:
|
||||
- mosru_client
|
||||
global_dependencies:
|
||||
- globals
|
||||
# water_sender:
|
||||
# class: WaterCounterSender
|
||||
# module: mosru
|
||||
# entity_ids:
|
||||
# hot: sensor.counter_hot
|
||||
# cold: sensor.counter_cold
|
||||
# app: mosru_client
|
||||
# dependencies:
|
||||
# - mosru_client
|
||||
# global_dependencies:
|
||||
# - globals
|
||||
|
||||
power_sender:
|
||||
class: PowerCounterSender
|
||||
|
||||
@@ -42,6 +42,9 @@ class TelegramTest(hass.Hass):
|
||||
self.log('Device has no screen present.')
|
||||
return
|
||||
|
||||
if "&feature=share" in video_url:
|
||||
video_url = video_url.replace("&feature=share", '')
|
||||
|
||||
# Preparing request
|
||||
headers = {
|
||||
"x-csrf-token": token,
|
||||
|
||||
+12
-2
@@ -48,6 +48,7 @@ services:
|
||||
container_name: hass
|
||||
volumes:
|
||||
- ./hass/settings:/config
|
||||
- ./secrets/hass/settings/secrets.yaml:/config/secrets.yaml:ro
|
||||
- ./hass/settings/hosts.txt:/etc/hosts:ro
|
||||
- /etc/localtime:/etc/localtime:ro
|
||||
ports:
|
||||
@@ -59,6 +60,7 @@ services:
|
||||
- mysql
|
||||
- mosquitto
|
||||
- broadlink
|
||||
- tor
|
||||
network_mode: "host"
|
||||
restart: always
|
||||
healthcheck:
|
||||
@@ -71,6 +73,14 @@ services:
|
||||
options:
|
||||
max-size: 50m
|
||||
|
||||
tor:
|
||||
build:
|
||||
context: ./tor/docker
|
||||
container_name: tor
|
||||
ports:
|
||||
- "9150:9150"
|
||||
restart: always
|
||||
|
||||
appdaemon:
|
||||
image: monster1025/appdaemon
|
||||
build:
|
||||
@@ -82,7 +92,7 @@ services:
|
||||
- hass
|
||||
volumes:
|
||||
- ./appdaemon/settings:/conf
|
||||
- ./hass/settings/secrets.yaml:/conf/secrets.yaml:ro
|
||||
- ./secrets/hass/settings/secrets.yaml:/conf/secrets.yaml:ro
|
||||
- ./hass/settings/hosts.txt:/etc/hosts:ro
|
||||
- /etc/localtime:/etc/localtime:ro
|
||||
restart: always
|
||||
@@ -194,7 +204,7 @@ services:
|
||||
# - "6052:6052"
|
||||
volumes:
|
||||
- ./esphome/settings:/config
|
||||
- ./hass/settings/secrets.yaml:/config/secrets.yaml:ro
|
||||
- ./secrets/hass/settings/secrets.yaml:/config/secrets.yaml:ro
|
||||
network_mode: "host"
|
||||
logging:
|
||||
driver: json-file
|
||||
|
||||
@@ -3,9 +3,9 @@ substitutions:
|
||||
devicename: watercontrol
|
||||
upper_devicename: Watercontrol
|
||||
pin_cold: D1
|
||||
init_cold: '210.29'
|
||||
init_cold: '216.08'
|
||||
pin_hot: D2
|
||||
init_hot: '109.74'
|
||||
init_hot: '112.3'
|
||||
water_open_pin: D5
|
||||
water_close_pin: D3
|
||||
ultrasonic_echo_pin: D6
|
||||
@@ -54,23 +54,25 @@ globals:
|
||||
|
||||
binary_sensor:
|
||||
- platform: gpio
|
||||
name: pulse_cold
|
||||
id: pulse_cold
|
||||
pin:
|
||||
number: $pin_cold
|
||||
mode: INPUT_PULLUP
|
||||
filters:
|
||||
- delayed_off: 100ms
|
||||
- delayed_on: 1s
|
||||
- delayed_off: 1s
|
||||
on_press:
|
||||
then:
|
||||
- lambda: 'id(counter_cold_value) += 0.01;'
|
||||
|
||||
- platform: gpio
|
||||
name: pulse_hot
|
||||
id: pulse_hot
|
||||
pin:
|
||||
number: $pin_hot
|
||||
mode: INPUT_PULLUP
|
||||
filters:
|
||||
- delayed_off: 100ms
|
||||
- delayed_on: 1s
|
||||
- delayed_off: 1s
|
||||
on_press:
|
||||
then:
|
||||
- lambda: 'id(counter_hot_value) += 0.01;'
|
||||
@@ -129,3 +131,12 @@ switch:
|
||||
- delay: 5s
|
||||
- switch.turn_off: water_close
|
||||
- lambda: 'id(water_state) = false;'
|
||||
|
||||
- platform: template
|
||||
name: "Reset"
|
||||
turn_on_action:
|
||||
- lambda: 'id(counter_cold_value) = 216.08;'
|
||||
- lambda: 'id(counter_hot_value) = 112.3;'
|
||||
turn_off_action:
|
||||
- lambda: 'id(counter_cold_value) = 216.08;'
|
||||
- lambda: 'id(counter_hot_value) = 112.3;'
|
||||
|
||||
@@ -35,8 +35,10 @@ atv4_credentials: xxxxxxxxx
|
||||
###################################
|
||||
# PROXY SETTINGS #
|
||||
###################################
|
||||
# proxy_url: xxxxxxxxx
|
||||
proxy_url: xxxxxxxxx
|
||||
|
||||
|
||||
###################################
|
||||
# MQTT SETTINGS #
|
||||
###################################
|
||||
|
||||
@@ -16,7 +16,6 @@ views:
|
||||
- vacuum.xiaomi_vacuum_cleaner
|
||||
- switch.domofon_force_open
|
||||
- switch.wifi_socket
|
||||
- light.wled
|
||||
- type: entities
|
||||
title: "Гостиная"
|
||||
show_header_toggle: false
|
||||
|
||||
+1
-1
Submodule secrets updated: e3bb1c5a44...8a0d926ab3
@@ -0,0 +1,13 @@
|
||||
FROM alpine:latest
|
||||
|
||||
RUN apk update \
|
||||
&& apk upgrade \
|
||||
&& apk add tor \
|
||||
&& rm /var/cache/apk/*
|
||||
|
||||
EXPOSE 9150
|
||||
|
||||
ADD ./torrc /etc/tor/torrc
|
||||
|
||||
USER tor
|
||||
CMD /usr/bin/tor -f /etc/tor/torrc
|
||||
@@ -0,0 +1,25 @@
|
||||
## The directory for keeping all the keys/etc
|
||||
DataDirectory /var/lib/tor
|
||||
|
||||
## Tor opens a socks proxy on port 9150
|
||||
SocksPort 0.0.0.0:9150
|
||||
|
||||
## Entry policies to allow/deny SOCKS requests based on IP address.
|
||||
## SocksPolicy accept 192.168.1.0/24
|
||||
SocksPolicy accept *
|
||||
|
||||
## Logs go to stdout at level "notice"
|
||||
Log notice stdout
|
||||
|
||||
ControlPort 9051
|
||||
|
||||
# Try for at most NUM seconds when building circuits. If the circuit isn't open in that time, give up on it. (Default: 1 minute.)
|
||||
CircuitBuildTimeout 5
|
||||
|
||||
# Send a padding cell every N seconds to keep firewalls from closing our connections while Tor is not in use.
|
||||
KeepalivePeriod 60
|
||||
# Force Tor to consider whether to build a new circuit every NUM seconds.
|
||||
NewCircuitPeriod 15
|
||||
# How many entry guards should we keep at a time?
|
||||
NumEntryGuards 8
|
||||
|
||||
Reference in New Issue
Block a user