• T
    tnederlof19

    Yes a ESP8266 is an Adruino with wifi onboard. Most ESP8266’s can be programmed via the micro-usb-connector, make sure you buy one with such a connection. You can use the onboard LDR of the module I linked or buy a d1-mini and solder a separate LDR to one of the inputs.
    For the software on the ESP8266, install ESP Easy and configure it as pulse counter via its webbrowser. The ESP8266 will send the measured power to your pimatic device.
    Note that most powermeters have a pulsed LED that blinks when 1/1000 of a kwh is consumed. A rotating disc could be a bit more difficult to ‘read’ with a LDR since it might require a small light, like a normal LED, to light the disc, such that the LDR can distinguish the rotating red spot.

    posted in Hardware read more
  • T
    tnederlof19

    I understand that the YouLess device does not measure power itself but reads it from the utility meter, is that what you are looking for? If you want to measure it yourself, you could hook up ampere meters, for example for every group in your house.
    Reading the utility meter could be done in two ways, depending on your utility meter: counting the pulses or reading the p1 port. If you have a p1 port, you could make a [cable](lhttp://www.esp8266thingies.nl/wp/wp-content/uploads/2017/01/P1wifi_handleiding.pdf yourself buy a p1-to-USB cable and plug it into a raspberry pi.
    A pulse counter could be made of a LDR and a counting device (arduino / ESP8266 / Raspberry Pi) or can be bought already made.

    posted in Hardware read more
  • T
    tnederlof19

    @Gleno0h I also had a bit of struggle to get the castnow script running, make sure you check out the configuration (castnow_scripts.cfg). In my case it couldn’t find the location of the screen program, find it with the command: “whereis screen”.
    Casnow uses a temp file, the hardcopy file, to store the screens output, make sure this location is writable.

    posted in Feature Requests read more
  • T
    tnederlof19

    Hi, I recently got this working using a few scripts:
    0_1495018484894_Knipsel.jpg
    It uses the Castnow program and to make things a little bit easier, it also uses the castnow control program.
    Since castnow opens very slowly (about 10 seconds), the script uses the ‘screen’ program to keep castnow open. Now commands can be send to the castnow that are executed almost instantly.
    In pimatic I used a ShellSensor to display the now-playing and a few buttons with rules to control the chromecast.
    The device to check the state is the following:

    {
          "attributeName": "state",
          "attributeType": "string",
          "command": "/home/pi/castnow_control/castnow_get_state.sh | grep Source |sed 's/Source: //g''",
          "id": "chromecast-audio-state",
          "name": "Chromecast now playing",
          "class": "ShellSensor",
        }
    

    I have no experience with making a plugin, but all it should do is install castnow, screen and castnow_control. Note that configuring the castnow_control was a bit of trouble since it couldn’t find the screen program and I have multiple chromecasts so this had to be changed in the configuration file.

    posted in Feature Requests read more

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