Git Product home page Git Product logo

Comments (21)

soif avatar soif commented on June 5, 2024

Dimmers are not currently implemented in Domoticz. (I've no dimmer to test)

Please remove the comment in front of //$this->Debug('Devices',$this->devices) in the pmd/inc/api/domoticz/api_client.php (near line 216), load any page, and copy/paste me the result here.

from phpmydomo.

soif avatar soif commented on June 5, 2024

checkout the latest 'develop' branch. Domoticz dimmers should be recognized.

and may be commands might work (experimental). Please tell me if it works!

from phpmydomo.

ghosmar avatar ghosmar commented on June 5, 2024

Dimmers are recognized and I can switch them on and off. Now we need a slider to set a level ....

from phpmydomo.

soif avatar soif commented on June 5, 2024

should be ther when you click on the white part of the button (where the level is shown)

from phpmydomo.

ghosmar avatar ghosmar commented on June 5, 2024

This is what I get when I click on the white part (in Chrome and IE):

slider

from phpmydomo.

soif avatar soif commented on June 5, 2024

enable debug in config or go to /utils/reset (this is certainly a cache issue)

from phpmydomo.

soif avatar soif commented on June 5, 2024

BTW I'll never fix any IE issue myself, so please make all your tests in Chrome, or any truly w3c compliant browser

from phpmydomo.

soif avatar soif commented on June 5, 2024

If it work, also please confirm that at 100, dimmers are totally FULL lighted

from phpmydomo.

ghosmar avatar ghosmar commented on June 5, 2024

The sliders are working after cache clean. At 100% tge light are fully on. You can remove the "not working" part ...

from phpmydomo.

soif avatar soif commented on June 5, 2024

Could you please make intensive checks (I've no dimmers myself to test) that you can, dim, then switch OFF, dim again (automatically switch ON)...etc...

Its difficult to explain,but : Is the GUI working as expected : immediate correct behaviour and icon/display feedback when you click, or dim.

I want it to be perfect! We are making a GUI that even a child, A WIFE, or a grand mother would immediately understand... graphic design apart (at this time ...). It must be as convenient as a physical button.

from phpmydomo.

ghosmar avatar ghosmar commented on June 5, 2024

I had finally had some time to test the dimmers. I see the following:

Problem 1:

  • Dimmer = ON (40 %)
  • Switch dimmer --> State = OFF (0 %)
  • Next screenupdate --> State = OFF (40 %)
  • Switch dimmer -> State = ON (100 %) but actual lamp is 40%
  • Next screen update -> State = ON (40%)

So after the screenupdate the correct screen is shown

Problem 2:

  • When setting a new level on the slider and clicking on the number the slider is removed
  • When clicking again on the number the slider shows the previous value

from phpmydomo.

soif avatar soif commented on June 5, 2024

FYI I do need your feedback to on #1 and #3 to release v0.134 !
Please report ASAP !

from phpmydomo.

pepijng avatar pepijng commented on June 5, 2024

The only problem i experienced:
When turning the dimmer On it displays 100 but after the screen update it get's its (last)value from the API and shows the correct value. The same occurs when turning the dimmer off, it goes to 0 and after it updates it shows the value in the API.

The API behaviour is normal because 433Mhz is one way you cannot request the dimmer state or value direct from the dimmer hardware. That's why it is stored in Domoticz and passed in the API.

So that's why for example you receive a value of 40 when the dimmer is turned off.

from phpmydomo.

soif avatar soif commented on June 5, 2024

It may have something in common with the way I internally scale the Dimmer value.
Could you please provide me 3 dumps (/devices?dump) of a dimmer device after changing its value in Domoticz (not from PMD):

  • When the dimmer is at 0% (Off)
  • When the dimmer is at 100% (Full On)
  • When the dimmer is at 50%

Then the same 3 Dump, but while changing the value From PMD (using the SLIDER only)

  • When the dimmer is at 0% (Off)
  • When the dimmer is at 100% (Full On)
  • When the dimmer is at 50%

Thank you for the feedback

from phpmydomo.

soif avatar soif commented on June 5, 2024

Please make PMD dimmers Dumps, with the latest develop branch (including commit 7a5d68f ). It should already be better!

from phpmydomo.

remb0 avatar remb0 commented on June 5, 2024

It works. but I use dutch translations and see as title: eettafel (not working) what is this not working?

from phpmydomo.

soif avatar soif commented on June 5, 2024

(not working) = Beta comment!

"It works" is not enought! I need a full report before releasing it ;-)

So please provide the asked Dumps, and/or make extensive tests and report results, like @ghosmar have done.

from phpmydomo.

ghosmar avatar ghosmar commented on June 5, 2024

From Domoticz -> Dimmer off

[command_dimmer_120] => Array
        (
            [raw_value1] => Off
            [address] => 120
            [name] => Lamp raam
            [battery_level] => 255
            [signal_level] => 7
            [raw] => Array
                (
                    [BatteryLevel] => 255
                    [CustomImage] => 0
                    [Data] => Off
                    [Favorite] => 1
                    [HardwareID] => 4
                    [HardwareName] => RFXCOM
                    [HaveDimmer] => 1
                    [HaveGroupCmd] => 1
                    [ID] => 2010000
                    [Image] => Light
                    [IsSubDevice] => 
                    [LastUpdate] => 2013-12-18 22:59:08
                    [Level] => 53
                    [LevelInt] => 8
                    [MaxDimLevel] => 16
                    [Name] => Lamp raam
                    [Notifications] => false
                    [SignalLevel] => 7
                    [Status] => Off
                    [SubType] => AC
                    [SwitchType] => Dimmer
                    [SwitchTypeVal] => 7
                    [Timers] => false
                    [Type] => Lighting 2
                    [TypeImg] => dimmer
                    [Unit] => 1
                    [Used] => 1
                    [UsedByCamera] => 
                    [idx] => 120
                )

            [class] => command
            [type] => dimmer
            [value] => 47
            [uid] => command_dimmer_120
            [state] => off
            [dim_steps] => 15
            [img_type] => dimmer_off
        )

From Domoticz -> Dimmer 100 %

    [command_dimmer_120] => Array
        (
            [raw_value1] => Set Level: 100 %
            [address] => 120
            [name] => Lamp raam
            [battery_level] => 255
            [signal_level] => 7
            [raw] => Array
                (
                    [BatteryLevel] => 255
                    [CustomImage] => 0
                    [Data] => Set Level: 100 %, Level: 100 %
                    [Favorite] => 1
                    [HardwareID] => 4
                    [HardwareName] => RFXCOM
                    [HaveDimmer] => 1
                    [HaveGroupCmd] => 1
                    [ID] => 2010000
                    [Image] => Light
                    [IsSubDevice] => 
                    [LastUpdate] => 2013-12-18 23:01:59
                    [Level] => 100
                    [LevelInt] => 16
                    [MaxDimLevel] => 16
                    [Name] => Lamp raam
                    [Notifications] => false
                    [SignalLevel] => 7
                    [Status] => Set Level: 100 %
                    [SubType] => AC
                    [SwitchType] => Dimmer
                    [SwitchTypeVal] => 7
                    [Timers] => false
                    [Type] => Lighting 2
                    [TypeImg] => dimmer
                    [Unit] => 1
                    [Used] => 1
                    [UsedByCamera] => 
                    [idx] => 120
                )

            [class] => command
            [type] => dimmer
            [value] => 100
            [uid] => command_dimmer_120
            [dim_steps] => 15
            [state] => on
            [img_type] => dimmer_on
        )

From Domoticz -> Dimmer 46 %

Array
(
    [command_dimmer_120] => Array
        (
            [raw_value1] => Set Level: 46 %
            [address] => 120
            [name] => Lamp raam
            [battery_level] => 255
            [signal_level] => 7
            [raw] => Array
                (
                    [BatteryLevel] => 255
                    [CustomImage] => 0
                    [Data] => Set Level: 46 %, Level: 46 %
                    [Favorite] => 1
                    [HardwareID] => 4
                    [HardwareName] => RFXCOM
                    [HaveDimmer] => 1
                    [HaveGroupCmd] => 1
                    [ID] => 2010000
                    [Image] => Light
                    [IsSubDevice] => 
                    [LastUpdate] => 2013-12-18 23:04:26
                    [Level] => 46
                    [LevelInt] => 7
                    [MaxDimLevel] => 16
                    [Name] => Lamp raam
                    [Notifications] => false
                    [SignalLevel] => 7
                    [Status] => Set Level: 46 %
                    [SubType] => AC
                    [SwitchType] => Dimmer
                    [SwitchTypeVal] => 7
                    [Timers] => false
                    [Type] => Lighting 2
                    [TypeImg] => dimmer
                    [Unit] => 1
                    [Used] => 1
                    [UsedByCamera] => 
                    [idx] => 120
                )

            [class] => command
            [type] => dimmer
            [value] => 40
            [uid] => command_dimmer_120
            [dim_steps] => 15
            [state] => on
            [img_type] => dimmer_on
        )

from phpmydomo.

ghosmar avatar ghosmar commented on June 5, 2024

PMD -> Dimmer off

    [command_dimmer_120] => Array
        (
            [raw_value1] => Off
            [address] => 120
            [name] => Lamp raam
            [battery_level] => 255
            [signal_level] => 7
            [raw] => Array
                (
                    [BatteryLevel] => 255
                    [CustomImage] => 0
                    [Data] => Off
                    [Favorite] => 1
                    [HardwareID] => 4
                    [HardwareName] => RFXCOM
                    [HaveDimmer] => 1
                    [HaveGroupCmd] => 1
                    [ID] => 2010000
                    [Image] => Light
                    [IsSubDevice] => 
                    [LastUpdate] => 2013-12-18 23:08:07
                    [Level] => 46
                    [LevelInt] => 7
                    [MaxDimLevel] => 16
                    [Name] => Lamp raam
                    [Notifications] => false
                    [SignalLevel] => 7
                    [Status] => Off
                    [SubType] => AC
                    [SwitchType] => Dimmer
                    [SwitchTypeVal] => 7
                    [Timers] => false
                    [Type] => Lighting 2
                    [TypeImg] => dimmer
                    [Unit] => 1
                    [Used] => 1
                    [UsedByCamera] => 
                    [idx] => 120
                )

            [class] => command
            [type] => dimmer
            [value] => 40
            [uid] => command_dimmer_120
            [state] => off
            [dim_steps] => 15
            [img_type] => dimmer_off
        )

PMD -> Dimmer 100 %

    [command_dimmer_120] => Array
        (
            [raw_value1] => Set Level: 100 %
            [address] => 120
            [name] => Lamp raam
            [battery_level] => 255
            [signal_level] => 7
            [raw] => Array
                (
                    [BatteryLevel] => 255
                    [CustomImage] => 0
                    [Data] => Set Level: 100 %, Level: 100 %
                    [Favorite] => 1
                    [HardwareID] => 4
                    [HardwareName] => RFXCOM
                    [HaveDimmer] => 1
                    [HaveGroupCmd] => 1
                    [ID] => 2010000
                    [Image] => Light
                    [IsSubDevice] => 
                    [LastUpdate] => 2013-12-18 23:08:49
                    [Level] => 100
                    [LevelInt] => 16
                    [MaxDimLevel] => 16
                    [Name] => Lamp raam
                    [Notifications] => false
                    [SignalLevel] => 7
                    [Status] => Set Level: 100 %
                    [SubType] => AC
                    [SwitchType] => Dimmer
                    [SwitchTypeVal] => 7
                    [Timers] => false
                    [Type] => Lighting 2
                    [TypeImg] => dimmer
                    [Unit] => 1
                    [Used] => 1
                    [UsedByCamera] => 
                    [idx] => 120
                )

            [class] => command
            [type] => dimmer
            [value] => 100
            [uid] => command_dimmer_120
            [dim_steps] => 15
            [state] => on
            [img_type] => dimmer_on
        )

Note: State of the dimmer is still displayed as off blue

PMD -> Dimmer 50 %

Array
(
    [command_dimmer_120] => Array
        (
            [raw_value1] => Set Level: 46 %
            [address] => 120
            [name] => Lamp raam
            [battery_level] => 255
            [signal_level] => 7
            [raw] => Array
                (
                    [BatteryLevel] => 255
                    [CustomImage] => 0
                    [Data] => Set Level: 46 %, Level: 46 %
                    [Favorite] => 1
                    [HardwareID] => 4
                    [HardwareName] => RFXCOM
                    [HaveDimmer] => 1
                    [HaveGroupCmd] => 1
                    [ID] => 2010000
                    [Image] => Light
                    [IsSubDevice] => 
                    [LastUpdate] => 2013-12-18 23:10:32
                    [Level] => 46
                    [LevelInt] => 7
                    [MaxDimLevel] => 16
                    [Name] => Lamp raam
                    [Notifications] => false
                    [SignalLevel] => 7
                    [Status] => Set Level: 46 %
                    [SubType] => AC
                    [SwitchType] => Dimmer
                    [SwitchTypeVal] => 7
                    [Timers] => false
                    [Type] => Lighting 2
                    [TypeImg] => dimmer
                    [Unit] => 1
                    [Used] => 1
                    [UsedByCamera] => 
                    [idx] => 120
                )

            [class] => command
            [type] => dimmer
            [value] => 40
            [uid] => command_dimmer_120
            [dim_steps] => 15
            [state] => on
            [img_type] => dimmer_on
        )

from phpmydomo.

ghosmar avatar ghosmar commented on June 5, 2024

btw. I like the new graphics 👍

from phpmydomo.

soif avatar soif commented on June 5, 2024

Excellent!
It seems OK to release a the new version. So we will see what other people report!

Thank you VERY much for your reports! It really help me a lot!

from phpmydomo.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.