MagicMirror Pimatic (Home Automation) Dashboard



  • First of all a big, very big thank you to Michael Teeuw!!!

    MagicMirror is really one of the greatest Raspberry projects followed by ‘pimatic - home automation controller’, another amazing Raspberry project. So far as I know both are developments from Dutchmen.
    After studying the documentation and several MM-moduls, I decided to use MagicMirror to setup a central dashboard for my family. Beside customizing of the standard moduls I used the modul ‘MMM-DWD-WarnWeather by LukeSkywalker92’ as a base to create a new modul for retrieving data from my pimatic home controller.
    I’m a complete novice to nodejs and all this web stuff, but my programming skill were sufficient to modify the Warnweather module and to integrate the the pimatic socket API.

    And voila, here is my dashboard providing now actual information from the internet plus status information from my IoT devices controlled by pimatic.

    alt text

    Special thanks, to those people taken time to document and to publish there solutions.
    (As soon as I’ve learned to use git, I will also publish the pimatic modul)

    Best regards and a happy new year!


  • Module Developer

    @Mr.Sponti Very nice! :) It’s where I’m headed…



  • @Mr.Sponti nice! just curious, why didn’t you use the “MMM-REST” module for your pimatic integration? I’m about to display some of the exact same Information (but from openHAB as a source for my home automation). So I wonder, if there were any impediments for using MMM-REST.

    Thanks,
    Thomas.



  • @binderth
    When using REST you need to poll / ask pimatic for updated values in a regular interval. With WebSockets pimatic can push changed values. This is less overhead and minimizes delays.



  • @binderth
    as @sero mentioned, the Advantage over the socket-API is that you get live events, if something in pimatic changes.
    In addition I use the “MMM-REST” (push) module for displaying selected status messages in case a specific pimatic rule is fullfilled.



  • @sero said in MagicMirror Pimatic (Home Automation) Dashboard:

    @binderth
    When using REST you need to poll / ask pimatic for updated values in a regular interval. With WebSockets pimatic can push changed values. This is less overhead and minimizes delays.

    @Mr.Sponti said in MagicMirror Pimatic (Home Automation) Dashboard:

    @binderth
    as @sero mentioned, the Advantage over the socket-API is that you get live events, if something in pimatic changes.
    In addition I use the “MMM-REST” (push) module for displaying selected status messages in case a specific pimatic rule is fullfilled.

    Thanks for the update. So, I think, I’ll do the same for my openHAB items, as openHAB can also push item changes through an API to MM. oh, I love challenges, since I never had done something in node.js! ;)



  • Hi,

    Nice mirror. Could you please provide your Module? I want to use it for my own pimatic controller.

    Thank you in advance.

    Sebastian.



  • @shgmongohh - Unfortunately I’m neither familiar with git nor with javascript or web style sheets. Based on my old school programming skills from the early eighties I studied several moduls and created 2 new moduls.

    The first one connect to pimatic via the WebSocket API and receives on device attribute changes all new values which I compare to device attribute definitions placed in the magic mirror config.js. If a device mach the new attribute, it is shown in the notification board (similar and based on modul MMM-DWD-WarnWeather by LukeSkywalker92). My modul also consist on 3 files:

    Pimatic Notification Borad:

    • MMM-Pimatic.js
    • node_helper.js
    • MMM-Pimatic.css
    • icons/icons-pimatic.png

    The second modul displays temperature devices and consists of 2 files and requires that the first modul is running, as it receives the pimatic attribute changes from the node-helper of the first modul by waiting on “notificationReceived”.

    Pimatic Temperature Devices:

    • MMM-M2-Pimatic.css
    • MMM-M2-Pimatic.js

    If someone could create the git repository and crosscheck the code I can provide the files by sending a zip.archiv.

    I would be glad to see additional ideas/moduls dealing with pimatic.


Log in to reply
 

Looks like your connection to MagicMirror Forum was lost, please wait while we try to reconnect.