python-mystrom icon indicating copy to clipboard operation
python-mystrom copied to clipboard

Allow the setting of the API password

Open fabaff opened this issue 7 years ago • 2 comments

The CLI mystrom doesn't allow to include additional parameters for the URL. This is necessary if one wants to integrate the buttons in Home Assistant while api_password is set.

https://next.home-assistant.io/components/binary_sensor.mystrom/#setup-of-mystrom-buttons

fabaff avatar Jun 07 '18 06:06 fabaff

How do you provide authentication for Home Assistant to be called via the action from the button. I'm working on the myStrom PIR and am not able to get it to send authenticated requests. Home Assistant blocks them, because they're unauthorized. According to the docs a 'Authorization: Bearer Token' header should be sent with any request but according to myStrom this is not currently supported.

Apsysikal avatar Dec 05 '23 12:12 Apsysikal

How do you provide authentication for Home Assistant to be called via the action from the button.

The buttons can't be used with Home Assistant anymore. The work-around was https://github.com/home-assistant-ecosystem/mystrom2mqtt and https://github.com/home-assistant-ecosystem/mystrom2mqtt. But I haven't used them in a while and they are unmaintained currently.

The PIR uses the same approach as the buttons, thus it could be possible to integrate those devices with mystrom2mqtt.

fabaff avatar Dec 06 '23 14:12 fabaff