GuyKh / iec-custom-component

HomeAssistant Custom Component for IEC
MIT License
123 stars 4 forks source link

Button to send a power consumption file to email #135

Closed tzagim closed 1 month ago

tzagim commented 1 month ago

Checklist

Is your feature request related to a problem? Please describe.

Button to send an electricity consumption file by email, instead of entering the IEC website

Describe the solution you'd like

https://iecapi.iec.co.il/api/Consumption/SendConsumptionReportToMail/{contract_id}
{
    "emailAddress": "your@mail.com",
    "meterCode": "{{device_code}}",
    "meterSerial": "{{device_id}}"
}

Describe alternatives you've considered

You need to think about whether to retrieve the email address from the IEC website, or enter it manually, or alternatively the Home Assistant email address.

Additional context

I don't want to overload the previous discussion. (https://github.com/GuyKh/iec-custom-component/issues/132)

GuyKh commented 1 month ago

I guess you would want this as the part of https://github.com/GuyKh/py-iec-api/, not the component

tzagim commented 1 month ago

I guess you would want this as the part of https://github.com/GuyKh/py-iec-api/, not the component

TNX https://github.com/GuyKh/py-iec-api/issues/123