Integration with Minut Point?

Broken for me also since 0.92.0 :frowning: as @Par_Hedberg says, deleting and re-adding fixes the issue. Restarting hass breaks it again though :frowning:

Raised https://github.com/home-assistant/home-assistant/issues/23416 with specifics of the problem.

hi, there is a way to see ā€œLogā€ or event?

and about an active alarm, have only a warning only on phoneapp? not on HA?

The events are shown as binary sensors, ha can log that for you.

Tha alarm should show up as both as an event for you to use as an automation and in the alarm panel.

Is this not working for you?

on lovelace i have all

  - binary_sensor.home_battery
  - binary_sensor.home_button_press
  - binary_sensor.home_cold
  - binary_sensor.home_connectivity
  - binary_sensor.home_dry
  - binary_sensor.home_heat
  - binary_sensor.home_moisture
  - binary_sensor.home_sound
  - binary_sensor.home_tamper
  - sensor.home_humidity
  - sensor.home_pressure
  - sensor.home_sound_level
  - sensor.home_temperature

and

arm_away

on alarm panel on lovelace

if ā€œturn alarm onā€ from app, moved under, let it detect and wait 45 second, point start to play alarm sound. good.
on phoneapp have ā€œMotion detected!ā€ and notification. good.
on lovelace alarm panel icon only turn from green ā€œactivateā€ to red ā€œawayā€. nothing more. canā€™t see ā€œmotion detected triggedā€ and/or is playng sound alarm.

(binary_sensor.home_button_press change if press point. good)

Alarms should show up in the alarm panel but Iā€™ve never been able to test it. Will report back once I get some more time.

1 Like

Had some time to test the triggers and this Webhook is received by my home-assistant, it should be populated by the alarm component but there seems to be an issue with that.

2019-07-21 09:42:38 DEBUG (MainThread) [homeassistant.components.point] Webhook a3375c6f3b7f9baf239...1c37c0aa2f94f7865386d4: 
{'hook_id': '5c669e...5ce5a0', 
'secret': '8988461...fbfc032df3d6a5', 
'event': {
  'id': '5d34176...001a15238', 
  'type': 'alarm_grace_period_expired', 
  'user_id': '5b29f03...018688eb', 
  'created_at': '2019-07-21T07:42:38.337Z', 
  'device_id': '5b29f0...b37aa47'
  }, 
'hook_digest': 'a06d195c65...4fbcb227554cafb46ff9'}

Iā€™ll try to investigate that some more but the debugging setup is quite complex so canā€™t give an estimate on when it is done. In the meantime build an automation like this to handle alarms:

- id: point_alarm
  alias: Point alarm
  trigger:
  - event_type: point_webhook_received
    platform: event
  condition:
    condition: template
    value_template: '{{ trigger.event.data.event.type == ''alarm_grace_period_expired'' }}'
  action:
  - data_template:
      message: 'Point event: {{ trigger.event.data.event.type }}, event data: {{ trigger.event.data}}'
      title: Point, {{ trigger.event.data.event.type }}
    service: notify.notify
  - data_template:
      message: '{{ trigger.event.data.event }}'
      title: Point alarm
    service: persistent_notification.create

1 Like

Iā€™ve got a PR that fixes the triggered alarm issue: https://github.com/home-assistant/home-assistant/pull/26062

Would be good if someone else also could test and verify that the alarm behaves as expected with this fix.

1 Like

ok now panel show up new alarm icon when ring.
tnx

A quick question for @fredrike - is it possible to specify config so that only a few devices from the userā€™s point account are retrieved by home assistant? I have a few points scattered around places on my account and Iā€™d only like to retrieve specific ones for a particular home assistant instance.

Is that possible? Iā€™ve had a quick search and canā€™t see anything but some of that may be that Iā€™m a HA newbie. Pointers, redirects all gratefully received.

Thank you for the integration, btw. Works beautifully (if retrieving slightly more than I need right now! :slight_smile: )

Cheers!

Scottā€¦

Hi @smackie and welcome to the community!

It is not possible to limit the devices from the Point Integration perspective. But I saw that the Entity Management in 0.98 supports disable entities:

The first feature is that itā€™s now possible to disable entities. If an entity is disabled, it will not be added to Home Assistant when an integration adds it. So now it will be easy to manage which entities will show up. This option is accessible from the entity registry

Iā€™ve not tested it myself but sounds easy to get going.

Iā€™m glad that you find the integration useful!

Fredrik,

Thanks for the reply! Understand about the API. The entity disable function appears to work for me so Iā€™ll use that.

Cheers!

Scottā€¦

Could this potentially be used as geofencing? I see the native point minut use this but is there no way to get that into home assistant?

Well you could build automations to when the stage of your point alarm changesā€¦

But there are tons of better alternatives for presence supported by hass. https://www.home-assistant.io/components/#-detection

I had a look at the code and it seems doable to add a list of ā€œhome usersā€ as an attribute to the alarm_panel created for each Home. Is this feature something that is still needed or did you go for another presence sensor?

It would mean less apps to use gps tracking so it would be nice if not to complicated. Also had a thought if not the motion sensor could be used in HA?

Again, I think other means would be better. Perhaps just looking at the devices connected to your router would be sufficient. Iā€™ll give it a try and see if it can be added.

Of course it can, just build automations from the binary sensor or an automation of the webhook (it is described in the point documentation).

Hi all,

Iā€™m having issues authentication to my Minuts. I run a dockerized installation of HASS and itā€™s working fine with some other integrations. With Minut I get the authorization dialog, I follow the link and successfully authenticate at Minut, thereā€™s a redirect happening to the correct localhost link and it gets both a 200 OK response as well as the OK! file download.

Yet, even though all that happens, when I click submit in the integration auth dialog it tells me I need to first go and authenticate at Minut and try again.

Iā€™m not really sure what could be going wrong here. Let me know what logs etc I can look at. The only thing under Developer Tools that look related are the below, but that seems to just confirm auth problems I think.

Error doing job: Task exception was never retrieved
November 9, 2019, 2:39 PM components/point/config_flow.py (ERROR) - message first occurred at November 9, 2019, 2:25 PM and shows up 5 times
Failed request: 404 Client Error: Not Found for url: https://api.minut.com/v1/users
November 9, 2019, 2:39 PM components/point/config_flow.py (WARNING) - message first occurred at November 9, 2019, 2:25 PM and shows up 5 times

regards,
Troed

That error looks like there have been changes in the api from Minut, I will have a look at it

A developer from Minut reached out to me with a patch for the underlying library used by the homeassistant integration. Iā€™ve merged that and a fix is merged into the homeassistant code. It will hopefully reach the 0.102 release.

2 Likes