• Register
    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    1. Home
    2. Popular
    Log in to post
    • All categories
    • All Topics
    • New Topics
    • Watched Topics
    • Unreplied Topics
    • All Time
    • Day
    • Week
    • Month
    • M

      FBD function error
      Mervis • • Martin Trojan

      10
      0
      Votes
      10
      Posts
      4077
      Views

      W

      It's working, thanks!

    • A

      Correct dip-switch settings for Neuron and extensions
      Unipi Extension Modules • • alydersen

      10
      0
      Votes
      10
      Posts
      4561
      Views

      Martin Kudláček

      Hi @alydersen,
      it is hard to tell what's wrong without the access to the setup. Would it be possible to arrange SSH access to the PLC? We can go over the details via email: [email protected]

      Best regards,
      Martin

    • M

      Compilation problem
      Mervis • • msoenen

      10
      0
      Votes
      10
      Posts
      4301
      Views

      M

      @robl

      ok it works, but I was forced to delete the old variables and replace them in the program
      it is a pity that there is no table with troublechoottings in which could look during malfunction but without the system does not default

    • C

      Different HMI application for web interface?
      Mervis • • clueless

      10
      0
      Votes
      10
      Posts
      4135
      Views

      C

      @tomasknot Yeah I see now, thanks.

    • M

      1-wire sensor and modbus sensor
      Other Peripherals • • matthijs

      10
      0
      Votes
      10
      Posts
      2890
      Views

      M

      @martin_triska said in 1-wire sensor and modbus sensor:

      in this case, you have to tie the wires manually ON THE SENSOR. According to the photo, you have to connect dark-green and light-brown wires together ON THE PCB

      Yes, that did the trick!

      Thanks for the education and superb support here Martin. Really enjoy using your products.

    • P

      Licence activation connection error with Mervis IDE 2.4
      Mervis • • Petr Helebrant

      10
      0
      Votes
      10
      Posts
      2931
      Views

      P

      Problem with activation solved. I have been using virtualised Windows 7 for Mervis programming (and activation) without any trouble until Mervis 2.4 and it seems there is some problem with SSL with current Mervis version and this outdated OS. Everything else works fine, only the activation process fails. With Windows 10 I was able to finish activation as usual.

      But there is still problem with MervisDB and Proxy communication. SslHanshakeError persists.

    • M

      Home assistant integration
      Installations, Ideas & Realisations • • marko2276

      10
      3
      Votes
      10
      Posts
      6989
      Views

      J

      @marko2276 ,
      After using your implementation for more than 2 years without flaw, both of my Unipi V1.1 systems (one with my whole Homeassistant installation) "died" from repeating powerfailures, due to grid loss and active but non functional emergency power. Both USB-sticks were damaged with backups on the same stick. Really bad luck, I should have known better.

      This forced me to a new installation using your altered code with unique_ids.
      Unfortunately, this code does not work properly having more than one Unipi-device with the same configuration(s).
      In this case the "unique_ids" will be identical for e.g. lights or switches on Unipi unit 1 and Unipi unit 2!
      Thus, Homeassistant isn't able to determine the targets anymore and will disable them.

      It took me some time effort to find this issue.

      As I'm using UniPi V1.1 devices, this migth only appear within my setup, but I'm pretty sure, this error will also occure on other unipi devices.

      I managed to get around this issue by extending the unique_id property definition(s) like this:

      code_text @property def unique_id(self): """Return the unique ID of this light entity.""" return f"{self._device}_{self._port}_at_{self._unipi_hub._name}"

      Hope, this will help others with the same issue.
      Cheers, Joerg

    • Martijn Hemeryck

      home assistant DIY setup blog
      Installations, Ideas & Realisations • • Martijn Hemeryck

      10
      1
      Votes
      10
      Posts
      3424
      Views

      Martijn Hemeryck

      Thanks a lot for the feedback!

      Hi @Martijn-Hemeryck,
      I checked your other posts and have some notes on the Software part:

      I think it's really nice you took this effort, tbh :)

      The Evok is planned (well, maybe "wished" is a better word:)) to be rewritten to Python 3 and to a multithreaded application. Along with that, major changes to the API will happen. We will abandon some of the less used APIs (RPC and SOAP probably) and definitely add native MQTT support since it is a driving force in the industry.

      How far along is this idea? Would you also be taking PRs? I mainly develop in python3 for my job and have some experience with asyncio (see e.g. https://github.com/mhemeryck/covers), so I might be interested to have a look at that.

      The missed state changes of the DI can be detected by checking the state of the DI counter. The counter is implemented in the HW and can count as fast as 10kHz signals.

      I wasn't aware of this polling speed!

      And a bit of explanation of the low level communication:

      The HW boards are connected over SPI The protocol on the SPI level is modified ModbusRTU The Unipi kernel module (part of the unipi-kernel-modules package) exposes this communication channe as /dev/unipispi device The Unipi ModbusTCP server (part of the unipi-modbus-tools) exposes this as a ModbusTCP server running on TCP/502 The rest is correct. Evok polls the ModbusTCP server as fast as it can. And creates a "system image" of the HW state.

      I obviously did get some of details wrong, so thanks for pointing this out!

      Would you mind if I did include your comments in an edit on this blog post?

      I really appreciate this kind of feedback; I never really did ask for your permission to publish on your product in the first place, so I am glad to see your reaction like this.

    • P

      Counting on digital inputs
      Official API - Evok • • pmandeli

      9
      0
      Votes
      9
      Posts
      5305
      Views

      P

      Resolved but not fully. The situation now is following. I have two devices connected to DI_2 and D_3. They show the same value as expected as they measure the same power line. Nevertheles DI_1 increasing the value as well even without connected device. Its value is aproximately a half of the DI_2 and DI_3. I made no changes on debounce time. Possibly bug in evok?

    • L

      How to read signal using Neuron
      Neuron Series • • lgab

      9
      0
      Votes
      9
      Posts
      4606
      Views

      B

      @lgab my reason for using the socket solution is that it pushes changes of the inputs so that I don't need to poll

    • Alverman

      Codesys emo R8 device
      CODESYS • • Alverman

      9
      0
      Votes
      9
      Posts
      5342
      Views

      Martin Kudláček

      Hello @FabioIT,
      the development of Codesys support has been dropped altogether. The Codesys can be still used on Neuron via ModbusTCP. The Unipi 1.1 doesn't have IOs accessible via ModbusTCP, only scattered over I2C, GPIO and so on - nothing easily configurable.

      Best regards,
      Martin

    • C

      Communication between UniPi & external RPi
      Mervis • • CKB

      9
      0
      Votes
      9
      Posts
      4923
      Views

      T

      @CKB If both UniPis are running Mervis, have them both in one project and use the SSCP protocol which is native protocol of Mervis. An example of this can be found at download section of Mervis.

    • T

      Analog Aoutput [Mervis]
      Unipi 1 - First Generation • • TriathletC

      9
      0
      Votes
      9
      Posts
      4369
      Views

      T

      @tomas_knot thank you.

    • M

      Nastavení systémového času
      Unipi 1 - First Generation • • mkonecny

      9
      0
      Votes
      9
      Posts
      5514
      Views

      M

      Vytvořil jsem novou globální proměnnou "Local Time" a v režimu ladění už mi správný čas ukazuje. Díky.

      Ještě mne prosím zkuste nasměřovat, aby se jsem tu novou lokální proměnnou dostat do HMI, popřípadě kde ji mám v dostupných promměnch hledat

      0_1511470123921_Promenne.png

    • U

      Could not find PLC via UDP
      Mervis • • ufa

      9
      0
      Votes
      9
      Posts
      4085
      Views

      T

      @ufa If you can ssh to the RPi with Mervis IMG on it, issue 'systemctl status mervisrt' and you will see if it runs OK.

    • T

      Evok problem getting I/O boards data
      Official API - Evok • • tempurpri

      9
      0
      Votes
      9
      Posts
      5670
      Views

      T

      @Andrew-Watson said in Evok problem getting I/O boards data:

      Some additional information, since I had time. I flashed a new sd card with a brand new raspbian stretch lite image (latest version, 2017-11-29)

      installed git and updated the system

      sudo -s apt-get install git apt-get update && apt-get upgrade -y && apt-get dist-upgrade -y raspi-config and changed the hostname

      Then installed the latest evok version (from commit 8a14c95 it seems).

      Selected website port 80 Internal API port 8080 Install for Unipi Neuron (I have the S103) No WiFi Reboot

      And this time it works... I don't know if this is due to something that was changed in the last commit (between 11am and 1.30pm today) or simply not installing the gpiozero library.

      It's quite likely it may be the GPIOZero library. Generally speaking software connected to hardware in a direct manner (with its own drivers etc.) is considerably less compatible among itself than other software. We test EVOK internally on clean Raspbian, as well as with our own image, which is based on the Raspbian Zero; for these combinations, along with some simple software (in fact EVOK installs vim itself), the software does pass testing (with occasional edge issues e.g. the light sensor issue recently).

      As to a guess why the GPIOZero library could be causing issues - we use 4 of the GPIO lines on the RPi to expand the primary SPI bus with interrupts and an extra device select slot. This (among other things) is done through the device overlay installed by EVOK, but it's possible that other software (at least one which is set up under root privileges) might change it, particularly if it deals with GPIO functionality.

      The latest commits only changed functionality related to the Sedtronic WTS DS2438 1Wire sensor, so it's very unlikely to have caused the problem. The issue you (and @tempurpri) are seeing is due to the expected boards not being found on the SPI bus - this can be because the SPI bus does not function correctly for some reason, or because the I2C EEPROM which stores data about which boards are expected does not function correctly.

      @tempurpri said in Evok problem getting I/O boards data:

      @tomas_knot The incompatibility with Codesys (the one you mention and the port incompatibility) would be an understandeable reason for the problems I have....had I not managed to have a working setup of Codesys for raspberry and evok running in the last month.

      Unless the 1-wire incompatibility between the two only becomes problematic with time (I'm not sure how that could be), then that was not the case for me. Just to make it clear Codesys and digital signal readout worked for me ... Modbus acces and the web interface. I needed that functionality only occasionally, so I'm not sure when it stopped working, but it was during the last month. Neither Codesys nor evok were re-installed nor was there any change in their configuration.

      I'm trying to find out what happened and especially try to make it work again.

      @tomas_knot @tomas_hora I understand that proper codesys integration is coming, but unless it's coming during this week it won't help my application. Unfortunately that's the timeframe I'm looking at, nothing to do with with Unipi itself.

      OK, so if codesys 1 wire driver is the suspect, is there a way to check that and maybe disable it within the Codesys editor ?

      I was assuming you have a 1Wire UniPi expansion board, which would not work correctly with Codesys. If you do not, it may still be possible to get it running. But first - does the device function correctly with a clean non-Codesys image? If yes then we can confidently say the issue lies with Codesys, and proceed from there.

    • D

      Wireless Access Point
      Official API - Evok • • devmicha

      9
      0
      Votes
      9
      Posts
      4664
      Views

      T

      Jessie has a different netconf stack from Stretch, so the AP will not work there - and there is a rather large all-capitals warning during the installation to not use anything else than clean Raspbian Stretch.

      Regardless it should work now, we'll have a quick look at what could go wrong.

    • J

      HMI Pushbutton
      Mervis • • JasperJackson

      9
      0
      Votes
      9
      Posts
      4269
      Views

      J

      @TomasKnot Hi Thomas! Thanks for the extensive reply! Really cool! I didn't think of the modbusserver solution, it sounds way more compatible and standard than the way through the HMI api. But i'll wait for the BacNET/IP interface, that sounds even better. I'll finish off the Python plugin for Domoticz anyway, it works great already with booleans and is even bidirectional :), next step is to add analog values... Thank you!

    • W

      All ports disappear via webinterface after EVOK update on L203
      Official API - Evok • • wizro_pl

      9
      0
      Votes
      9
      Posts
      3768
      Views

      T

      Right now it's best to use the install method starting from Raspbian (but currently only Raspbian Stretch). We are currently working on image build system which helps us to get faster releases of images and application updates (debian packages).

    • C

      1-wire sensor not detected in Evok web interface
      Official API - Evok • • clueless

      9
      0
      Votes
      9
      Posts
      4021
      Views

      T

      Hi @clueless,

      Glad to hear it's working - I'm not sure what exactly could have gone wrong, as everything seemed to be okay in the logs, which left me, well, quite clueless.

      I was hoping to get back to you with some more information, but frankly could not think of any simple checks to be made. At any rate - I am very glad to hear that it is working for you now!