Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

V3.6.0 #178

Merged
merged 16 commits into from
Jun 25, 2024
8 changes: 7 additions & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name: Build

# Build the ESPHome firmwares for the S0tool project.
on:
workflow_dispatch:
push:
Expand All @@ -9,6 +9,11 @@ on:
schedule:
- cron: '0 4 * * 1'

env:
RELEASE_URL: ${{ github.server_url }}/${{ github.repository }}/releases/latest
FIRMWARES: |
s0tool

jobs:
build:
name: Build ${{ matrix.firmware.name }}
Expand Down Expand Up @@ -56,6 +61,7 @@ jobs:
with:
yaml_file: ${{ matrix.firmware.file }}
version: latest
release_url: ${{ github.event.release.html_url || env.RELEASE_URL }}
- name: Copy firmware and manifest
run: |
mkdir output
Expand Down
20 changes: 20 additions & 0 deletions .github/workflows/release-drafter.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
---
name: Release Drafter

on:
push:
branches:
- main

jobs:
update_release_draft:
name: ✏️ Draft release
runs-on: ubuntu-latest
permissions:
contents: write
pull-requests: read
steps:
- name: 🚀 Run Release Drafter
uses: release-drafter/release-drafter@v6.0.0
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
63 changes: 63 additions & 0 deletions .github/workflows/release-drafter.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,63 @@
---
name-template: "v$RESOLVED_VERSION"
tag-template: "v$RESOLVED_VERSION"
change-template: "- #$NUMBER $TITLE @$AUTHOR"
sort-direction: ascending

categories:
- title: "🚨 Breaking changes"
labels:
- "breaking-change"
- title: "✨ New features"
labels:
- "new-feature"
- title: "🐛 Bug fixes"
labels:
- "bugfix"
- title: "🚀 Enhancements"
labels:
- "enhancement"
- "refactor"
- "performance"
- title: "🧰 Maintenance"
labels:
- "maintenance"
- "ci"
- title: "📚 Documentation"
labels:
- "documentation"
- title: "⬆️ Dependency updates"
collapse-after: 5
labels:
- "dependencies"

exclude-labels:
- "sync"

version-resolver:
major:
labels:
- "major"
- "breaking-change"
minor:
labels:
- "minor"
- "new-feature"
patch:
labels:
- "bugfix"
- "chore"
- "ci"
- "dependencies"
- "documentation"
- "enhancement"
- "performance"
- "refactor"
default: patch

template: |
## What's changed

$CHANGES

**Full Changelog**: https://github.com/$OWNER/$REPOSITORY/compare/$PREVIOUS_TAG...v$RESOLVED_VERSION
6 changes: 5 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
| [![License][license-shield]](LICENSE) [![Forks][forks-shield]][forks-url] [![Stargazers][stars-shield]][stars-url] [![Issues][issues-shield]][issues-url] | [![Contributors][contributors-shield]][contributors-url] [![GitHub release](https://img.shields.io/github/release/huizebruin/s0tool.svg)](https://GitHub.com/huizebruin/s0tool/releases/)|


| S0tool |
| S0tool.nl |
| :--- |
| ![S0tool-logo](./static/assets/s0tool-logo.jpg) |
| Made for ESPHome program |
Expand All @@ -14,6 +14,10 @@
| :--- | :--- |
| ![S0tool-print](./static/assets/s0tool-huizebruin.jpg) | ![dashboard](./static/assets/s0tool-dashboard.png) |

## New website for the S0tool. (24-06-2024)

For more information check also [https://s0tool.nl](https://s0tool.nl)

## Dutch version
For the Dutch version look on my [website](https://www.huizebruin.nl/home-assistant/wat-is-de-s0tool/)

Expand Down
1 change: 1 addition & 0 deletions esphome/S0-puls-DSZ12D.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -28,4 +28,5 @@ packages:
files:
- esphome/components/basis.yaml
- esphome/components/DSZ12D.yml
- esphome/components/s0tool-dsz12d-update.yml
refresh: 0d
1 change: 1 addition & 0 deletions esphome/S0-puls-LEM022SJ.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -28,4 +28,5 @@ packages:
files:
- esphome/components/basis.yaml
- esphome/components/LEM022SJ.yml
- esphome/components/s0tool-lem022sj-update.yml
refresh: 0d
1 change: 1 addition & 0 deletions esphome/S0-puls-kwhpuls.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,4 +27,5 @@ packages:
files:
- esphome/components/basis.yaml
- esphome/components/kwhpuls.yml
- esphome/components/s0tool-kwh-puls-update.yml
refresh: 0d
214 changes: 107 additions & 107 deletions esphome/components/basis.yaml
Original file line number Diff line number Diff line change
@@ -1,107 +1,107 @@
# Delen en bewerken mag maar laat deze eerste regels staan.
# Bron : https://s0tool.nl
# Bron File : https://github.com/huizebruin/s0tool/tree/main/esphome
# © Huizebruin.nl & S0tool.nl
substitutions:
device_description: ${name} gemaakt door s0tool.nl versie ${vdate}.
vdate: "v3.6.0" # From 23-06-2024 new version
date: "24-06-2024"
preferences:
flash_write_interval: 120min
improv_serial:
wifi:
ap:
web_server:
port: 80
captive_portal:
# ⬇ Enable logging ⬇ #
logger:
level: INFO
tx_buffer_size: 100
esp8266_store_log_strings_in_flash: false
ota:
- platform: esphome
- platform: http_request
http_request:
verify_ssl: false
time:
- platform: homeassistant
id: time_homeassistant
on_time_sync:
- component.update: S0tool_uptime_timestamp
# https://esphome.io/components/safe_mode need for ESPHome v2024.6.x
safe_mode:
sensor:
#------------------------# sensoren #------------------------#
- platform: uptime
id: S0tool_uptime
- platform: template
id: S0tool_uptime_timestamp
name: "${name} online sinds"
device_class: "timestamp"
accuracy_decimals: 0
update_interval: never
icon: 'mdi:clock-start'
entity_category: diagnostic
lambda: |-
static float timestamp = (
id(time_homeassistant).utcnow().timestamp - id(S0tool_uptime).state
);
return timestamp;
# ⬇ versie verbinding informatie sensoren voor in ha ⬇ #
# WiFi signal
- platform: wifi_signal
name: "${name} - WiFi Signal"
update_interval: 120s
text_sensor:
- platform: template
name: "s0tool_versie"
id: s0tool_versie
icon: 'mdi:alpha-v-circle-outline'
update_interval: 6h
entity_category: diagnostic
lambda: |-
return {"${vdate}"};
- platform: wifi_info
ip_address:
name: "${name} IP-adres"
id: s0tool_ip_adres
icon: mdi:ip-network
mac_address:
name: "${name} Mac-adres"
id: s0tool_mac_adres
icon: mdi:folder-key-network-outline
# restart button #
button:
- platform: restart
name: "${name} Restart device"
entity_category: diagnostic
# Factory Reset Switch from ESPHome v2022.09
- platform: factory_reset
name: "Restart with Factory Default Settings"
entity_category: diagnostic
disabled_by_default: True
# safe mode button
- platform: safe_mode
name: "Safe Mode"
entity_category: diagnostic
disabled_by_default: True
# Delen en bewerken mag maar laat deze eerste regels staan.
# Bron : https://s0tool.nl
# Bron File : https://github.com/huizebruin/s0tool/tree/main/esphome
# © Huizebruin.nl & S0tool.nl
substitutions:
device_description: ${name} gemaakt door s0tool.nl versie ${vdate}.
vdate: "v3.6.0" # From 23-06-2024 new version
date: "24-06-2024"

preferences:
flash_write_interval: 120min

improv_serial:

wifi:
ap:

web_server:
port: 80

captive_portal:

# ⬇ Enable logging ⬇ #
logger:
level: INFO
tx_buffer_size: 100
esp8266_store_log_strings_in_flash: false

ota:
- platform: esphome
- platform: http_request

http_request:
verify_ssl: false

time:
- platform: homeassistant
id: time_homeassistant
on_time_sync:
- component.update: S0tool_uptime_timestamp

# https://esphome.io/components/safe_mode need for ESPHome v2024.6.x
safe_mode:

sensor:
#------------------------# sensoren #------------------------#
- platform: uptime
id: S0tool_uptime

- platform: template
id: S0tool_uptime_timestamp
name: "${name} online sinds"
device_class: "timestamp"
accuracy_decimals: 0
update_interval: never
icon: 'mdi:clock-start'
entity_category: diagnostic
lambda: |-
static float timestamp = (
id(time_homeassistant).utcnow().timestamp - id(S0tool_uptime).state
);
return timestamp;

# ⬇ versie verbinding informatie sensoren voor in ha ⬇ #
# WiFi signal
- platform: wifi_signal
name: "${name} - WiFi Signal"
update_interval: 120s

text_sensor:
- platform: template
name: "s0tool_versie"
id: s0tool_versie
icon: 'mdi:alpha-v-circle-outline'
update_interval: 6h
entity_category: diagnostic
lambda: |-
return {"${vdate}"};

- platform: wifi_info
ip_address:
name: "${name} IP-adres"
id: s0tool_ip_adres
icon: mdi:ip-network

mac_address:
name: "${name} Mac-adres"
id: s0tool_mac_adres
icon: mdi:folder-key-network-outline

# restart button #
button:
- platform: restart
name: "${name} Restart device"
entity_category: diagnostic

# Factory Reset Switch from ESPHome v2022.09
- platform: factory_reset
name: "Restart with Factory Default Settings"
entity_category: diagnostic
disabled_by_default: True

# safe mode button
- platform: safe_mode
name: "Safe Mode"
entity_category: diagnostic
disabled_by_default: True
6 changes: 3 additions & 3 deletions esphome/components/gasenwater-update.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
update:
- platform: http_request
name: Firmware Update
update:
- platform: http_request
name: Firmware Update
source: https://s0tool.nl/econet-hpwh.json
7 changes: 4 additions & 3 deletions esphome/components/s0tool-dsz12d-update.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
update:
- platform: http_request
name: Firmware Update

update:
- platform: http_request
name: Firmware Update
source: https://s0tool.nl/s0tool-dsz12d-manifest.json
6 changes: 3 additions & 3 deletions esphome/components/s0tool-kwh-puls-update.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
update:
- platform: http_request
name: Firmware Update
update:
- platform: http_request
name: Firmware Update
source: https://s0tool.nl/s0tool-kwh-puls-manifest.json
Loading