• G
    georg90

    Hi!

    I wonder if anyone is already working on implementing the Mi Smart Home eco system into pimatic?
    https://xiaomi-mi.com/sockets-and-sensors/xiaomi-mi-smart-home-kit/

    Sensors are very cheap and use Zigbee!

    It’s seems not too much trouble, since there is already a package for npm: https://www.npmjs.com/package/mijia or https://www.npmjs.com/package/miio.

    Also FHEM and OpenHAB have an implementation running: https://github.com/T0RST3N/fhem-XiaomiSmartHome/wiki / http://docs.openhab.org/addons/bindings/mihome/readme.html

    Anybody interested in this? Implementation should be similar to pimatic-max (with the Mi gateway as controller). Also the yeelight plugin could be a starting point.

    Since I don’t have the skill / time to do it alone, I would be more than happy if someone picks it up.

    posted in Plugins read more
  • G
    georg90

    Using a DIY smart home system I imagine people need to look into other technical topics as well… Most of documentation, blogs and forums are in English. So I guess it is wise to speak at least a little bit of English (in general!)
    I as a German don’t like this sub section, which will lead to all questions into one sub and split the community even more.

    But I guess people asking for a German sub forum is just a very German thing to do - Why go the extra mile if you are “the majority of people” as @noxx puts it…

    I am confident people can use Google Translate to understand mostly everything and use it to ask further questions or ask one of their fellow Germans to translate / help further. If the language keeps you from doing something, maybe other missing skills will, too?

    posted in Announcements read more
  • G
    georg90

    Thanks for the reply!

    Yeah, I was referring to the submodule, which needs >4.3.
    I am installing 4.8 right now and will try if this fixes my problems with pimatic-hap.

    Thanks for the quick help!

    posted in pimatic v0.9 read more
  • G
    georg90

    Hi @mwittig!

    Are you sure about 4.6? Can I use 4.8 (latest LTS?)?
    Some of the submodules of the pimatic-hap plugin require node 4.3, I only have 4.2.6 installed.

    Sorry for hijacking :(

    posted in pimatic v0.9 read more
  • G
    georg90

    Since I wasn’t happy with the ddos/login protection given by pimatic itself, I added some “fake” security to it using fail2ban. I am calling this fake security, since you don’t prevent attacks, you just deal with it by banning the attacker for a given time.

    I am assuming you have fail2ban ready and setup. Since pimatic isn’t logging failed logins we need another service to log those failed logins. apache2 is our friend! I am using different subdomains on my local server, one for pimatic (eg. smarthome.mydomain.com) and others (cloud.mydomain.com) and have a error/access logfile for each of them.

    My pimatic vhost looks like this:

    #### Smart Home (smarthome.mydomain.com) #####
    <VirtualHost *:443>
    ServerName smarthome.mydomain.com
    
    ####Configuration for SSL #####
    Header always add Strict-Transport-Security "max-age=15768000"
    SSLEngine on
    SSLHonorCipherOrder on
    SSLCipherSuite  'EECDH+ECDSA+AESGCM:EECDH+aRSA+AESGCM:EECDH+ECDSA:EECDH:EDH+AESGCM:EDH:ECDH+AESGCM:ECDH+AES:ECDH:HIGH:MEDIUM:!RC4:!3DES:!CAMELLIA:!SEED:!aNULL:!MD5:!eNULL:!LOW:!EXP:!DSS:!PSK:!SRP'
    SSLProtocol all -SSLv2 -SSLv3
    SSLCompression off
    
    # Let's encrypt ssl files
    SSLCertificateFile /etc/letsencrypt/live/mydomain/cert.pem
    SSLCertificateKeyFile /etc/letsencrypt/live/mydomain/privkey.pem
    Include /etc/letsencrypt/options-ssl-apache.conf
    SSLCertificateChainFile /etc/letsencrypt/live/mydomain/chain.pem
    
    ProxyVia On
    ProxyRequests off
    ProxyPreserveHost On
    
    <Proxy *>
        Order allow,deny
        Allow from all
    </Proxy>
    
    ProxyPass / http://127.0.0.1:8080/
    
    LogLevel warn
    ErrorLog /var/log/apache2/smarthome.mydomain.com-error.log
    CustomLog /var/log/apache2/smarthome.mydomain.com-access.log common
    
    </VirtualHost>
    

    As you can see pimatic is running on port 8080 and all connections coming to smarthome.mydomain.com are getting redirected to pimatic.

    For fail2ban we’ll need a custom filter and jail:

    pimatic.conf in /etc/fail2ban/filter.d/

    # Fail2Ban pimatic filter
    #log entry looks like this:
    # 233.122.126.115 - - [20/Jan/2017:11:32:00 +0100] "POST /login HTTP/1.1" 401 621
    
    [INCLUDES]
    
    [Definition]
    
    failregex = <HOST> - - .* .*(POST|GET) .*(\/login|/api/.*) HTTP.* 401 .*$
    
    ignoreregex =
    

    This will catch failed logins (http error 401) for the webinterface & api requests.

    custom jail

    [pimatic]
    enabled = true
    port = https
    filter = pimatic
    logpath = /var/log/apache2/smarthome.mydomain-access.log
    maxretry = 3
    bantime = 1800
    

    reload fail2ban & check if it’s working:

    $ fail2ban-regex --print-all-matched /var/log/apache2/smarthome.mydomain.log /etc/fail2ban/filter.d/pimatic.conf
    
    Running tests
    =============
    
    Use   failregex filter file : pimatic, basedir: /etc/fail2ban
    Use         log file : /var/log/apache2/smarthome.mydomain-access.log
    Use         encoding : UTF-8
    
    Results
    =======
    [...]
    Lines: 202 lines, 0 ignored, 7 matched, 195 missed [processed in 0.10 sec]
    

    Hope this helps someone :)

    posted in Rules and Scripts read more
  • G
    georg90

    use ESP core 2.0.0 - had the same problem…

    posted in ESPimatic read more
  • G
    georg90

    Can you post some image of your ground plane @thex ?

    As I understand you just put a piece of metal underneath the breadboard with your transmitter?

    Would aluminium work as well? :D Sorry I’m not an expert…

    posted in Hardware read more
  • G
    georg90

    @sweebee

    2x wall remotes to use “old” wall switches.

    How did you wire those? I have a double switch I like to be able to turn on/off with pimatic - since I don’t have a static current near the switch, I’ll need those One-wire actors: http://www.amazon.com/EQ3-76785-HomeMatic-Funk-Schalterschnittstelle-3-fach/dp/B00315VNOI?tag=meintechblog-140107-21

    OR your solution! Can you please give me some details ? :)

    posted in mysensors read more

Looks like your connection to pimatic forum was lost, please wait while we try to reconnect.