Integration with Minut Point?

edit: Sorry, noob mistake in forgetting to switch branch for the docker image. Authentication works fine with the current RC image.


Can you let me know which merge so I can try to see when it ends up in a docker image? I’ve tried both the latest RC as well as latest Dev just now but no change.

Thanks.

First of all, thank you for a great effort, everyone working on the integration!

I am trying to use the Point to set a scene when the point is activated, ie we are leaving the apartment, but I don’t get the trigger to activate. Any idea what is wrong?

- id: A008
  alias: Elvis has left the building
  trigger:
  - entity_id: alarm_control_panel.home
    platform: state
    from: disarm
  action:
    service: scene.turn_on
    entity_id: scene.MyCustomScene

Hi,

Try trigger on the actual webhook instead, I think I’ve posted an example that triggers on all hooks above.

Has anyone had any success enabling the ‘silent alarm’ functionality via the API / Home Assistant ?

It is unfortunately not documented what “Silent Alarm” is. Once it is I’ll be happy to add that support to the integration. (Perhaps you can contact minut.com and see what they say).

1 Like

Hi, they change name from Poin to only MINUT
and from https://www.minut.com/developers/ to https://api.minut.com/v1/docs/#tag/Events/paths/~1events/get they added sensor:

glassbreak
avg_sound_high
sound_level_high_despite_warning
sound_level_dropped_normal
battery_empty

1 Like

Thank you for spotting this.

The following events are already supported:

EVENTS = {
    'battery':  # On means low, Off means normal
    ('battery_low', ''),
    'button_press':  # On means the button was pressed, Off means normal
    ('short_button_press', ''),
    'cold':  # On means cold, Off means normal
    ('temperature_low', 'temperature_risen_normal'),
    'connectivity':  # On means connected, Off means disconnected
    ('device_online', 'device_offline'),
    'dry':  # On means too dry, Off means normal
    ('humidity_low', 'humidity_risen_normal'),
    'heat':  # On means hot, Off means normal
    ('temperature_high', 'temperature_dropped_normal'),
    'moisture':  # On means wet, Off means dry
    ('humidity_high', 'humidity_dropped_normal'),
    'sound':  # On means sound detected, Off means no sound (clear)
    ('avg_sound_high', 'sound_level_dropped_normal'),
    'tamper':  # On means the point was removed or attached
    ('tamper', ''),
}

So it should be fairly easy to add more supported events.

1 Like

After 0.107 minut sensors doesn’t work.
All are in unavailable state.

Any idea?
Regards,

Alessandro

What does your log say? I’ve upgraded to 0.107.1 and that works fine.

Other users has this issue.
I don’t know because i’ve deleted my integration and i don’t manage to connect again.
Rel. 0.107.4

Here it is:

Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/config_entries.py", line 216, in async_setup
    hass, self
  File "/usr/src/homeassistant/homeassistant/components/point/__init__.py", line 97, in async_setup_entry
    await async_setup_webhook(hass, entry, session)
  File "/usr/src/homeassistant/homeassistant/components/point/__init__.py", line 108, in async_setup_webhook
    entry.data[CONF_WEBHOOK_ID] = hass.components.webhook.async_generate_id()
TypeError: 'mappingproxy' object does not support item assignment

I also got this.

Logginformation (ERROR)
Logger: homeassistant.config_entries
Source: components/point/__init__.py:78
First occurred: 21 mars 2020 11:35:56 (1 occurrences)
Last logged: 21 mars 2020 11:35:56

Error setting up entry [email protected] for point
Traceback (most recent call last):
  File "/usr/local/lib/python3.7/site-packages/requests_oauthlib/oauth2_session.py", line 478, in request
    url, http_method=method, body=data, headers=headers
  File "/usr/local/lib/python3.7/site-packages/oauthlib/oauth2/rfc6749/clients/base.py", line 198, in add_token
    raise TokenExpiredError()
oauthlib.oauth2.rfc6749.errors.TokenExpiredError: (token_expired) 

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/config_entries.py", line 216, in async_setup
    hass, self
  File "/usr/src/homeassistant/homeassistant/components/point/__init__.py", line 97, in async_setup_entry
    await async_setup_webhook(hass, entry, session)
  File "/usr/src/homeassistant/homeassistant/components/point/__init__.py", line 118, in async_setup_webhook
    ["*"],
  File "/usr/local/lib/python3.7/concurrent/futures/thread.py", line 57, in run
    result = self.fn(*self.args, **self.kwargs)
  File "/usr/local/lib/python3.7/site-packages/pypoint/__init__.py", line 151, in update_webhook
    hooks = self._request(MINUT_WEBHOOKS_URL, request_type='GET')['hooks']
  File "/usr/local/lib/python3.7/site-packages/pypoint/__init__.py", line 95, in _request
    request_type, url, timeout=TIMEOUT.seconds, **params)
  File "/usr/local/lib/python3.7/site-packages/requests_oauthlib/oauth2_session.py", line 503, in request
    self.token_updater(token)
  File "/usr/src/homeassistant/homeassistant/components/point/__init__.py", line 78, in token_saver
    entry.data[CONF_TOKEN] = token
TypeError: 'mappingproxy' object does not support item assignment

I installed 0.107.0 and got this error. Rolled back to 0.106.6 and everything was working. I then updated to 0 107.1 and it was still working but after that it was broken again.

Thanks for reporting these issues. I’ve created an issue and as soon as I get a reply I’ll try to push a change.

0.107.6 fixes the Point issue. Sorry for the inconvenience.

3 Likes

HA 0.109.6 i see this on log page :

"point: the ‘.translations’ directory has been moved, the new name is ‘translations’, starting with Home Assistant 0.111 your translations will no longer load if you do not move/rename "

Is this a bug or what are you trying to say?

sorry, hi have that on log.

now i have removed minut from integration (clean config, reboot, add to config, reboot) and can’t add it

Aborted Point successfully configured from another flow.

on log:

Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/config_entries.py", line 216, in async_setup
    hass, self
  File "/config/custom_components/point/__init__.py", line 97, in async_setup_entry
    await async_setup_webhook(hass, entry, session)
  File "/config/custom_components/point/__init__.py", line 108, in async_setup_webhook
    entry.data[CONF_WEBHOOK_ID] = hass.components.webhook.async_generate_id()
TypeError: 'mappingproxy' object does not support item assignmen

:frowning:

@MZorzy, why are you running point from custom_components?? It’s been part of official integrations for 2 years!.

Try updating to the latest version and that issue will be gone.

i had point under custom components because i have try to add missed event like breakinglass.
removed now

I don’t understand what you mean.