cnstudio / Taipower-Bimonthly-Energy-Cost-homeassistant

Calculate Taipower (Taiwan Power Company) bi-monthly bill amount from kWh sensor on Home Assistant.
MIT License
67 stars 7 forks source link

Use selector to select entity and date in config flow #12

Closed tsunglung closed 2 years ago

tsunglung commented 2 years ago

提交 PR 前, 惠請您先檢查以下是否已完成:

如有補充事項請盡量完整說明, 感謝您.

tsunglung commented 2 years ago

Switch to English UI, got errors. debugging.

cnstudio commented 2 years ago

@tsunglung T 大您好, 我有一個想法不知道可不可行: 新增電費結算報告 notify 通知? 在 config flow 新增第三行讓 user 選擇 notify.xxx service (預設 notify.notify), 然後在第 60 天觸發 notify 後再 reset, 這樣 user 會得到一個本期用電度數跟電費結算結果的通知. YAML 的 POC 程式如下:

action:

tsunglung commented 2 years ago

You can set up automation with trigger condition with sensor.bimonthly_energy is 0. It is more flexible. The next step, plan to support other electricity prices, like the ladder price.