This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
- alias: Climate - Bathroom - House Mode/Presence | |
description: '' | |
trigger: | |
- entity_id: | |
- input_select.house_mode | |
- input_select.presence | |
platform: state | |
action: | |
- choose: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
substitutions: | |
friendly_name: Basement Presence | |
name: pres01 | |
esphome: | |
friendly_name: ${friendly_name} | |
name: ${name} | |
esp8266: | |
board: d1_mini |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
locals { | |
members = tolist([ | |
for i, v in setproduct(var.wli_namespaces, var.wli_services) : | |
"serviceAccount:your-project-id.svc.id.goog[${v[0]}/${v[1]}]" | |
]) | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Components | |
============================================ | |
~$4 NodeMCUv2 ESP8266 (fairly generic, get wherever's convenient) | |
~$6 Adafruit SHT40: https://www.adafruit.com/product/4885 | |
~$1 Adafruit StemmaQT to female Dupont cable: https://www.adafruit.com/product/4397 | |
USB wall wart (Optional, however you power the ESP8266 is fine) | |
USB A to micro B (Optional, however you power the ESP8266 is fine) | |
Assembly | |
============================================ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
func CreateCertificate(rand io.Reader, template, parent *Certificate, pub, priv interface{}) (cert []byte, err error) { | |
<...> | |
publicKeyBytes, publicKeyAlgorithm, err := marshalPublicKey(pub) | |
if err != nil { | |
return nil, err | |
} | |
privKeyBytes, _, err := marshalPublicKey(&priv.PublicKey) |