Measurements.mobile-alerts.eu Integration Possible?

Hello,
i started with HASS yesterday and it works fine.
Everything added except my Weather Station from Mobile-Alerts.
The Variables are Online but i have no idea how to handle this with HASS.
Even i dont know if its possible right now …

Here is the Link

Best Greetings …
Ned

You could use a scrape sensor.

Hi, I also have several Mobile-Alerts sensors and I don’t know how to get the data to show it in Home Assistant, did you get it ?, with scrape or with some other component ?. I scrape it, I did some test but I didn’t get anything at all.

Hello,

Same here. Have some sensors I would like to integrate.
They have a REST API and update value every 7 minutes: https://mobile-alerts.eu/info/public_server_api_documentation.pdf
If anybody have a template I can adapt to them, I would be more then happy to do it.

Thanks!

1 Like

Hello

Same here…

  • platform: rest
    name: MobileAlert
    resource: https://www.data199.com/api/pv1/device/lastmeasurement
    method: POST
    payload: ‘{ “deviceid=02XXXXFXXF4B&phoneid=85XXXX40XX33” }’
    headers:
    content-type: application/x-www-form-urlencoded
    scan_interval: 120
    json_attributes:
    • measurement
      value_template: ‘{{ states.sensor.mobilealert.attributes[“t1”] }}’
  • platform: template
    sensors:
    ma_aussen:
    friendly_name: Aussentemperatur
    value_template: ‘{{ states.sensor.mobilealert.attributes[“t1”] }}’

Working Link in Post. 1 https://measurements.mobile-alerts.eu/Home/SensorsOverview?phoneid=425290958626

Thanks for any Input / Help…

Unfortunately the API only seems to work for a subset of the sensors - many of the technoline (rainfall, wind speed) whilst displaying in mobile-alerts are not available.

I have a lot of MobileAlert Sensors. But no one will work in HomeAssistant…

you can see the data here:
https://measurements.mobile-alerts.eu/
put in your phone ID (settings, then go down to get the ID)
this will show current values.
click on one of the names and you can see history.
I am writing some appdaemon code (with beautifulsoup) to read these values if anyone is interested

I try do it with the SCRAPE in Home Assistant. Without success…

So what is your code?

it appears measurements.mobile-alerts.eu is no longer working - need the data199.com api calls instead

I have a new way:
Source-Code: https://github.com/sarnau/MMMMobileAlerts
Decription (german): https://www.107er.net/hitech/2019/02/mobilealerts-sensoren-in-home-assistant-einbinden/

You can run the Script on Synology NAS or other Linux-Systems.
My MQTT-Server ist on the HA-Rapspery-Pi. So i need only the maserver-Scripts on my NAS.

Tool: if nessesary: Modify MobileAlert Gateway manually: http://www.weatherdirect.com/downloads/GatewayAdminInstall.exe

1 Like

This works for me with one request and multiple sensors:

sensor:
  - platform: rest
    name: majson
    json_attributes:
      - devices
    resource: https://www.data199.com/api/pv1/device/lastmeasurement
    method: POST
    headers:
      Content-Type: application/json
    payload: '{"deviceids": "0258CCxxxxxx,025C77xxxxxx,017B6Fxxxxxx,041A90xxxxxx,02580Exxxxxx,0B2B87xxxxxx"}'
    value_template: "{{ value_json.success }}"
    scan_interval: 120

  - platform: template
    sensors:
      achim_temperature:
        friendly_name: "Office-Temperatur"
        value_template: "{{ state_attr('sensor.majson', 'devices')[0]['measurement']['t1'] }}"
        unit_of_measurement: "°C"
      teich_temperature:
        friendly_name: "Teich-Temperatur"
        value_template: "{{ state_attr('sensor.majson', 'devices')[1]['measurement']['t1'] }}"
        unit_of_measurement: "°C"
      koiair_temperature:
        friendly_name: "Koi-Luft-Temperatur"
        value_template: "{{ state_attr('sensor.majson', 'devices')[2]['measurement']['t1'] }}"
        unit_of_measurement: "°C"
      koiwater_temperature:
        friendly_name: "Koi-Wasser-Temperatur"
        value_template: "{{ state_attr('sensor.majson', 'devices')[2]['measurement']['t2'] }}"
        unit_of_measurement: "°C"
      studio_temperature:
        friendly_name: "Studio-Temperatur"
        value_template: "{{ state_attr('sensor.majson', 'devices')[3]['measurement']['t1'] }}"
        unit_of_measurement: "°C"
      studio_humidity:
        friendly_name: "Studio-Feuchte"
        value_template: "{{ state_attr('sensor.majson', 'devices')[3]['measurement']['h'] }}"
        unit_of_measurement: "%"
      studio_wleak:
        friendly_name: "Studio-Wasser"
        value_template: "{{ state_attr('sensor.majson', 'devices')[3]['measurement']['t2'] }}"
      usv_temperature:
        friendly_name: "USV-Temperatur"
        value_template: "{{ state_attr('sensor.majson', 'devices')[4]['measurement']['t1'] }}"
        unit_of_measurement: "°C"
      wind_speed:
        friendly_name: "Wind-Speed"
        value_template: "{{ state_attr('sensor.majson', 'devices')[5]['measurement']['ws'] }}"
        unit_of_measurement: "m/s"
      wind_speedmax:
        friendly_name: "Wind-SpeedMax"
        value_template: "{{ state_attr('sensor.majson', 'devices')[5]['measurement']['wg'] }}"
        unit_of_measurement: "m/s"
      wind_direction:
        friendly_name: "Wind-Direction"
        value_template: "{{ state_attr('sensor.majson', 'devices')[5]['measurement']['wd'] }}"

for testing:

curl -X POST 'https://www.data199.com/api/pv1/device/lastmeasurement' -H "Content-Type: application/json" -d '{"deviceids": "0258CCxxxxxx,025C77xxxxxx,017B6Fxxxxxx,041A90xxxxxx,02580Exxxxxx,0B2B87xxxxxx"}'
3 Likes

thanks. It works for me also !! :slight_smile:

Hey multigcs,

thanks a lot! Strange that it works without phone ID. According to Mobile-Alerts it shouldnt. :slight_smile:
Anyway, when I enter more that one sensor, it doesnt work anymore. REST API says the deviceids should be separated my collon, not by comma. But it seems to work for you this way, right?

Best Thomas

thank you so much - after frustrating days now it works !!

Mobile measurement alerts, MQTT feedback with Maserver

Additional modules Modules complémentaires http:/ip:port/hassio/dashboard
image


Ha French, ID masking…

@+DÕ¿ÕM Français sous HA → Doubledom

1 Like

how do you install this addon in home assistant? i am not be able to putin this git hub link in the addon store in home assistant?

Slt…I am French Google translation
Je me suis trompé regarde pour Alertes mobiles

I was wrong look for Mobile alerts
@+Dom

for Mobile alerts there is a simpler trick on Github than curl which doesn’t work all the time…

1 Like

hi, works for me, too.