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

同步 #14

Merged
merged 185 commits into from
Mar 11, 2024
Merged

同步 #14

merged 185 commits into from
Mar 11, 2024

Conversation

tarontop
Copy link
Owner

同步

tarontop and others added 30 commits April 27, 2022 11:57
Removed min_save_interval: 180s as breaking change in total_daily_energy in ESPhome 2022.8.0
Added preference and flash_write_interval to replace it
Removed min_save_interval: 180s as breaking change in total_daily_energy in ESPhome 2022.8.0
Added preference and flash_write_interval to replace it
Update athom-smart-plug.yaml
Update athom-smart-plug-v2.yaml
Add factory reset button
Add factory reset button
 Add factory reset button
Add factory reset button
Add factory reset button
Add factory reset button
Add factory reset button
Add factory reset button
Add factory reset button
Add factory reset button
tarontop and others added 29 commits September 11, 2023 15:11
Remove duplicate Safe Mode button
Bring config into line with changes introduced to cse7766 platform in esphome/esphome#6095
Replace deprecated update_interval sensor config with throttle filter
Update athom-smart-plug-v2.yaml
- Corrected 'throttle' to 'throttle_average'
- Changed "Total Energy" update interval to follow 'sensor_update_interval' substitution
- Added '- filter_out: nan' to "Energy" due to receiving erroneous values on boot
Changes:

entity_category: diagnostic and entity_category: config - In HA this places these sensors and configuration items in the correct location, when viewing the individual devices in the ESP Home integration

Uptime Sensor & WiFi Signal - Change to internal, whilst allowing their use in sensors that format the output to be more useful or meaningful

WiFi Strength - Add sensor that reports signal as a %, as compared to Db that is meaningless to most people. Pulls data from WiFi Signal sensor.

Device Uptime - Add a sensor that uses Uptime Sensor to provide a formatted output of the days/hours/seconds the device has been up, as opposed to a xxxxxx seconds, that to be meaningful needs deciding with a calculator

sntp_time - Add a sensor that reports the actual day, date and time of when the device was last restarted
Removed WiFi Fast Connection
Update athom-smart-plug-v2.yaml to Categorize Config/Diag in HA and add meaningful WiFi, Uptime and Last Restarted sensors
Update athom-smart-plug-v2.yaml
Fix athom-wall-outlet.yaml to address CSE7766 breaking change in ESPhome 2024.2
Add:
1) Ability to define a timezone when sync'ing with SNTP. Normally plug will sync with timezone of the HA server, however this (optionally) allows defining a timezone for the plug in the substituions section.

2) Add support (optionally) being able to enable 'fast_connect' for the WiFi conenction. When the plug has previously connected to an SSID this allows the device to rapidly reconnect to it in future, without the delay caused by a full scan of the available SSID's in the area.

3) Add support (optional) for setting a dns_domain with the network connection. Defined in substitutions, instead of the plug obtaining a DHCP lease in your network and registering in the main dns zone, this allows allocating the plug to the correct network name / device purpose. i.e. In your 'home.lan' network if you have all IoT devices segemented off for security, you could use this to have the device register as 'smart-plug-v2.iot.home.lan'

4) Noticed the subsitutions has 'room:' as an entity, however it is not used. Added 'areas:' that calls the 'room' variable. This is in line with ESPHome adding the ability to inform the HomeAssistant (HA) server which 'area' with HA it should be allocated. This is instead of manually having to select this when (re)adding devices to HA.

BTW could the Repository owner please look to add the 'Discussions' feature to the Repo? ATM there is no way to communicate about possible changes, features to add or issue fixes. This means the only way to do any of this is to Request a Pull.
- Remove 'nan' workaround from "Current" sensor, fixed in Esphome 2024.2.1
- Add "min_version" required for fix
- Add "Current" limiter to switch off relay when over maximum set current
- Fix "Current" sensor throttle to match example in Esphome docs
- Update "Total Energy" sensor only when there is new data
- Add "Restart" button
- Reverted "WiFi Strength" %, Home Assistant only accepts dB or dBm
- Change "Switch" name to 'Switch', otherwise it's friendly name is duplicated
- Shorten sensor names to fit Home Assistant dashboard
- Clean up extra whitespace
Update athom-smart-plug-v2.yaml
Reverted "WiFi Strength" %,
Change update interval to 5 minutes to reduce flash memory wear
@tarontop tarontop merged commit 7fec181 into tarontop:main Mar 11, 2024
21 of 24 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.