Skip to content
  • MySensors
  • OpenHardware.io
  • Categories
  • Recent
  • Tags
  • Popular
Skins
  • Light
  • Brite
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Brand Logo
  1. Home
  2. Bug Reports
  3. Dimmable LED Actuator ver 1.4.1

Dimmable LED Actuator ver 1.4.1

Scheduled Pinned Locked Moved Bug Reports
8 Posts 3 Posters 3.0k Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • FrancoisF Offline
    FrancoisF Offline
    Francois
    wrote on last edited by
    #1

    @hek I am getting the following error when I compile this sketch under Mysensor ver 1.4.1. what can the problem be. If I do i on ver 1.4 it works

    DimmableLEDActuator.ino:33:17: error: no matching function for call to 'MySensor::MySensor(int, int)'
    DimmableLEDActuator.ino:33:17: note: candidates are:
    In file included from DimmableLEDActuator.ino:26:0:
    E:\ardruino progammes\libraries\MySensors/MySensor.h:79:2: note: MySensor::MySensor()
    MySensor();
    ^
    E:\ardruino progammes\libraries\MySensors/MySensor.h:79:2: note: candidate expects 0 arguments, 2 provided
    E:\ardruino progammes\libraries\MySensors/MySensor.h:70:7: note: MySensor::MySensor(const MySensor&)
    class MySensor
    ^
    E:\ardruino progammes\libraries\MySensors/MySensor.h:70:7: note: candidate expects 1 argument, 2 provided
    Error compiling.

    1 Reply Last reply
    0
    • H Offline
      H Offline
      hek
      Admin
      wrote on last edited by
      #2

      Compiles fine here. Did your restart the IDE after switching libraries?

      1 Reply Last reply
      0
      • FrancoisF Offline
        FrancoisF Offline
        Francois
        wrote on last edited by
        #3

        @hek yes I did restart the IDE after installing. I did compile out sketches and the all work I only have an problem with this one.

        1 Reply Last reply
        0
        • H Offline
          H Offline
          hek
          Admin
          wrote on last edited by
          #4

          I'm running IDE 1.5.8.. could be differences when compiling.

          Ok, what happens if you remove the arguments from the constructor. Like this:

          MySensor gw;

          1 Reply Last reply
          0
          • FrancoisF Offline
            FrancoisF Offline
            Francois
            wrote on last edited by Francois
            #5

            @hek I alos runs IDE 1.5.8

            Yes it compiles if I only have it like this;

            MySensor gw;
            

            What is the values in the brakes for?

            1 Reply Last reply
            0
            • H Offline
              H Offline
              hek
              Admin
              wrote on last edited by
              #6

              MySensor(uint8_t cepin = 9, uint8_t cspin = 10);
              cepin - The pin attached to RF24 Chip Enable on the RF module (default 9)
              cspin - The pin attached to RF24 Chip Select (default 10)

              1 Reply Last reply
              1
              • FrancoisF Offline
                FrancoisF Offline
                Francois
                wrote on last edited by
                #7

                @hek if I compile the sketch without that argument (9,10) the sensor is not working.

                1 Reply Last reply
                0
                • J Offline
                  J Offline
                  jemish
                  wrote on last edited by
                  #8

                  in openhab , dimmer switch change only two state 0 and 100.
                  I didn't get change in between 0 to 100.

                  please help me in openhab rule file for change.

                  my rule file is

                  when
                  Item Fan_Hall_reg received command

                  then
                  	var Number percent = 0
                  	if(Fan_Hall_reg.state instanceof DecimalType) percent = Fan_Hall_reg.state as DecimalType 
                  		
                  	if(receivedCommand==INCREASE) percent = percent + 5
                  	if(receivedCommand==DECREASE) percent = percent - 5
                  
                  	if(percent<0)   percent = 0
                  	if(percent>100) percent = 100
                  	postUpdate(Fan_Hall_reg, percent);
                  	sendCommand (Arduino , "Fan_Hall_reg=" + percent)
                  

                  in this rule I get only two state not in between that.

                  1 Reply Last reply
                  0

                  Hello! It looks like you're interested in this conversation, but you don't have an account yet.

                  Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

                  With your input, this post could be even better 💗

                  Register Login
                  Reply
                  • Reply as topic
                  Log in to reply
                  • Oldest to Newest
                  • Newest to Oldest
                  • Most Votes


                  48

                  Online

                  12.0k

                  Users

                  11.2k

                  Topics

                  113.4k

                  Posts


                  Copyright 2025 TBD   |   Forum Guidelines   |   Privacy Policy   |   Terms of Service
                  • Login

                  • Don't have an account? Register

                  • Login or register to search.
                  • First post
                    Last post
                  0
                  • MySensors
                  • OpenHardware.io
                  • Categories
                  • Recent
                  • Tags
                  • Popular