Philips Dynalite integration - state reporting

Yes correct!

For the top left it is not reflecting anything at all.

The bottom left reflects the correct state however it is for the whole channel which is spot light and the pendant light. some times I need to press it more than once to get the correct status in HA

So what I have found on my system is that the state is not reflected in HA if it is channel level. Using HA, you can send channel level commands, which work and the status is updated accordingly. When you use a dynalite switch to send a channel level command, the state is not detected by HA. This is what your top left switch does.

When the switch uses a preset command for the logical area, HA detects the correct state. This is what your bottom left switch does.

I suspect this is an issue with the Dynalite integration. (???)

I have some extractor fans on my dynalite network and had the same problem because they were all set up in the same logical area and I could not track the state if someone pressed the antumbra button. This was stopping my automations from working - eg. prevent someone from turning off the laundry exhaust fan while the clothes dryer is running.

I got around this by moving the laundry fan from a channel level configuration in dynalite onto it’s own logical area.

You could get around your problem by changing your kitchen to use presets to reflect the state you want and then get that top button to select the appropriate preset.

Thanks a lot, finally I got it working as I wish. I think you opened new Automation Ideas now for me :smile:

And I think we need to ask @ziv if he can enhance the integration to accept channel level switch as you said it will be much easier if the user don’t have access to system builder

Good news. Yes I have quite a few automations running from the dynaite switches now. It’s good to have a switch to trigger them as well as voice and home assistant

1 Like

hi. can you please explain what was not working? any chance you can find the actual packets either via the logs or by listening to an event?

Will be happy to add whatever is missing, but not sure i understand

1 Like

@ziv Have sent you a message

1 Like

I’m sure @HoundDog can explain clearly.

The integration can switch on/off dim … etc, however it can not report the correct button press of the physical switch unless it is configured as an area with All channels. Then it can show the correct status.

I can help with logs just let me know what I have to do in configuration and I will happily do it

Thanks

can you please explain this? i will be happy to add to the integration whatever is missing. i just dont have it set up this way in my system, so will need to understand exactly what is needed

I don’t know how to explain it in IT language, however I will show you how it looks in the system builder program and compare it with HA configuration

The below shows the area and channel that the physical switch configured to it (no state is reflected in HA)

Each area in yellow icon holding a number and below it channels with the purple icon holding a number, this is how your integration work, and it is fine with HA it will communicate with Dynet. The problem with this approach we don’t get the state to show if we press the physical switch.

However what @HoundDog showed me that the state can be reflected if I kept all the channels in separated areas and change the configuration in HA accordingly. the below is system builder where channels area separated in areas

The bottom line is:

If the button press on the physical switch configured to toggle on/off (preset 1/4) for a specific channel in an area it will not report to HA (I can press the physical button and get the packet reading form system builder if this is useful)

If the button press on the physical switch configured to toggle on/off (preset 1/4) for all channels in area it will report the state in HA.

Thank you

thanks. i have multiple channels in an area and it works, so this is strange. can you please send me the dynalite part of the configuration.yaml and perhaps the config entry from .storage/core.config_entries?

This what I use now

dynalite:
  bridges:
    - host: 192.168.75.232
      autodiscover: true
      name: dynalite
      active: on
      polltimer: 1.0
      area:
        '30':
          name: Family Room
          channel:
            '1':
              name: All toggle
        '31':
          name: Kitchen
          channel:
            '1':
              name: All toggle
        '32':
          name: Living Room
          channel:
            '1':
              name: All toggle
        '33':
          name: Main Entrance
          channel:
            '1':
              name: All toggle
        '34':
          name: Majlis
          channel:
            '1':
              name: All toggle
        '35':
          name: Master Bed
          channel:
            '1':
              name: All toggle
        '36':
          name: Master Sitting
          channel:
            '1':
              name: All toggle
        '37':
          name: Master Bathroom and Dressing
          channel:
            '1':
              name: All toggle
        '2':
          name: Majlis
          channel:
            '1':
              name: Spot
        '28':
          name: Majlis
          channel:
            '2':
              name: Chandlier
        '29':
          name: Majlis
          channel:
            '3':
              name: Covelight
        '3':
          name: Living Room 
          channel:
            '1':
              name: Covelight 
        '26':
          name: Living Room
          channel:
            '3':
              name: Chandlier
        '27':
          name: Living Room
          channel:
            '4':
              name: Spot
        '4':
          name: Main Entrance
          channel:
            '2':
              name: Chandlier 
        '24':
          name: Main Entrance
          channel:
            '5':
              name: Spot
        '25':
          name: Main Entrance
          channel:
            '6':
              name: Covelight
        '5':
          name: Dinning
          channel:
            '1':
              name: Chandlier
        '6':
          name: Kitchen
          channel:
            '1':
              name: Spot
        '8':
          name: Kitchen
          channel:
            '2':
              name: Chandlier
        '7':
          name: Stair
          channel:
            '1':
              name: Lights
        '9':
          name: Master Bed
          channel:
            '1':
              name: Chandlier
        '22':
          name: Master Bed
          channel:
            '6':
              name: Spot
        '23':
          name: Master Bed
          channel:
            '7':
              name: Covelight
        '10':
          name: Master Sitting
          channel:
            '1':
              name: Spot
        '20':
          name: Master Sitting
          channel:
            '2':
              name: Chandlier
        '21':
          name: Master Sitting
          channel:
            '3':
              name: Covelight
        '11':
          name: Family Room
          channel:
            '3':
              name: Spot
        '13':
          name: Family Room
          channel:
            '1':
              name: Chandlier
        '19':
          name: Family Room
          channel:
            '2':
              name: Covelight

        '12':
          name: Master Entrance
          channel:
            '8':
              name: Spot
        '14':
          name: Outside Wall
          channel:
            '2':
              name: Lamp
        '15':
          name: First Floor Lobby
          channel:
            '1':
              name: Spot
        '16':
          name: Outside villa wall
          channel:
            '1':
              name: out
        '17':
          name: Master Bath
          channel:
            '1':
              name: Spot
        '18':
          name: Master Dress
          channel:
            '1':
              name: Spot

This what I used to use

dynalite:
  bridges:
    - host: 192.168.75.232
      autodiscover: true
      name: dynalite
      active: on
      polltimer: 1
      area:
        '2':
          name: Majlis
          template: room
          channel:
            '1':
              name: Spot
            '2':
              name: Chandlier
            '3':
              name: Covelight
        '3':
          name: Living Room
          template: room
          channel:
            '1':
              name: Living Covelight 
            '3':
              name: Living Chandlier
            '4':
              name: Living Spot
        '4':
          name: Main Entrance
          template: room
          channel:
            '2':
              name: Chandlier 
            '5':
              name:  Spot
            '6':
              name: Covelight
        '5':
          name: Dinning
          channel:
            '1':
              name: Chandlier
        '6':
          name: Kitchen
          template: room
          channel:
            '1':
              name: Spot
            '2':
              name: Chandlier
        '7':
          name: Stair
          channel:
            '1':
              name: Lights
        '9':
          name: Master Bed
          template: room
          channel:
            '1':
              name: Chandlier
            '6':
              name: Spot
            '7':
              name: Covelight
        '10':
          name: Master Sitting
          template: room
          channel:
            '1':
              name: Spot
            '2':
              name: Chandlier
            '3':
              name: Covelight
        '11':
          name: Family Room
          template: room
          channel:
            '1':
              name: Chandlier
            '2':
              name: Covelight
            '3':
              name: Spot
        '12':
          name: Master Entrance
          channel:
            '8':
              name: Spot
        '14':
          name: Outside Wall
          channel:
            '2':
              name: Lamp
        '15':
          name: First Floor Lobby
          channel:
            '1':
              name: Spot
        '16':
          name: Outside villa wall
          channel:
            '1':
              name: out
        '17':
          name: Master Bath
          channel:
            '1':
              name: Spot
        '18':
          name: Master Dress
          channel:
            '1':
              name: Spot

This is what I have under .storage/core.config_entries

            {
                "entry_id": "008afe938210ef6acdb3028c5d65afa9",
                "version": 1,
                "domain": "dynalite",
                "title": "192.168.75.232",
                "data": {
                    "host": "192.168.75.232",
                    "autodiscover": true,
                    "name": "dynalite",
                    "active": true,
                    "polltimer": 1.0,
                    "area": {
                        "30": {
                            "name": "Family Room",
                            "channel": {
                                "1": {
                                    "name": "All toggle",
                                    "type": "light"
                                }
                            }
                        },
                        "31": {
                            "name": "Kitchen",
                            "channel": {
                                "1": {
                                    "name": "All toggle",
                                    "type": "light"
                                }
                            }
                        },
                        "32": {
                            "name": "Living Room",
                            "channel": {
                                "1": {
                                    "name": "All toggle",
                                    "type": "light"
                                }
                            }
                        },
                        "33": {
                            "name": "Main Entrance",
                            "channel": {
                                "1": {
                                    "name": "All toggle",
                                    "type": "light"
                                }
                            }
                        },
                        "34": {
                            "name": "Majlis",
                            "channel": {
                                "1": {
                                    "name": "All toggle",
                                    "type": "light"
                                }
                            }
                        },
                        "35": {
                            "name": "Master Bed",
                            "channel": {
                                "1": {
                                    "name": "All toggle",
                                    "type": "light"
                                }
                            }
                        },
                        "36": {
                            "name": "Master Sitting",
                            "channel": {
                                "1": {
                                    "name": "All toggle",
                                    "type": "light"
                                }
                            }
                        },
                        "37": {
                            "name": "Master Bathroom and Dressing",
                            "channel": {
                                "1": {
                                    "name": "All toggle",
                                    "type": "light"
                                }
                            }
                        },
                        "2": {
                            "name": "Majlis",
                            "channel": {
                                "1": {
                                    "name": "Spot",
                                    "type": "light"
                                }
                            }
                        },
                        "28": {
                            "name": "Majlis",
                            "channel": {
                                "2": {
                                    "name": "Chandlier",
                                    "type": "light"
                                }
                            }
                        },
                        "29": {
                            "name": "Majlis",
                            "channel": {
                                "3": {
                                    "name": "Covelight",
                                    "type": "light"
                                }
                            }
                        },
                        "3": {
                            "name": "Living Room",
                            "channel": {
                                "1": {
                                    "name": "Covelight",
                                    "type": "light"
                                }
                            }
                        },
                        "26": {
                            "name": "Living Room",
                            "channel": {
                                "3": {
                                    "name": "Chandlier",
                                    "type": "light"
                                }
                            }
                        },
                        "27": {
                            "name": "Living Room",
                            "channel": {
                                "4": {
                                    "name": "Spot",
                                    "type": "light"
                                }
                            }
                        },
                        "4": {
                            "name": "Main Entrance",
                            "channel": {
                                "2": {
                                    "name": "Chandlier",
                                    "type": "light"
                                }
                            }
                        },
                        "24": {
                            "name": "Main Entrance",
                            "channel": {
                                "5": {
                                    "name": "Spot",
                                    "type": "light"
                                }
                            }
                        },
                        "25": {
                            "name": "Main Entrance",
                            "channel": {
                                "6": {
                                    "name": "Covelight",
                                    "type": "light"
                                }
                            }
                        },
                        "5": {
                            "name": "Dinning",
                            "channel": {
                                "1": {
                                    "name": "Chandlier",
                                    "type": "light"
                                }
                            }
                        },
                        "6": {
                            "name": "Kitchen",
                            "channel": {
                                "1": {
                                    "name": "Spot",
                                    "type": "light"
                                }
                            }
                        },
                        "8": {
                            "name": "Kitchen",
                            "channel": {
                                "2": {
                                    "name": "Chandlier",
                                    "type": "light"
                                }
                            }
                        },
                        "7": {
                            "name": "Stair",
                            "channel": {
                                "1": {
                                    "name": "Lights",
                                    "type": "light"
                                }
                            }
                        },
                        "9": {
                            "name": "Master Bed",
                            "channel": {
                                "1": {
                                    "name": "Chandlier",
                                    "type": "light"
                                }
                            }
                        },
                        "22": {
                            "name": "Master Bed",
                            "channel": {
                                "6": {
                                    "name": "Spot",
                                    "type": "light"
                                }
                            }
                        },
                        "23": {
                            "name": "Master Bed",
                            "channel": {
                                "7": {
                                    "name": "Covelight",
                                    "type": "light"
                                }
                            }
                        },
                        "10": {
                            "name": "Master Sitting",
                            "channel": {
                                "1": {
                                    "name": "Spot",
                                    "type": "light"
                                }
                            }
                        },
                        "20": {
                            "name": "Master Sitting",
                            "channel": {
                                "2": {
                                    "name": "Chandlier",
                                    "type": "light"
                                }
                            }
                        },
                        "21": {
                            "name": "Master Sitting",
                            "channel": {
                                "3": {
                                    "name": "Covelight",
                                    "type": "light"
                                }
                            }
                        },
                        "11": {
                            "name": "Family Room",
                            "channel": {
                                "3": {
                                    "name": "Spot",
                                    "type": "light"
                                }
                            }
                        },
                        "13": {
                            "name": "Family Room",
                            "channel": {
                                "1": {
                                    "name": "Chandlier",
                                    "type": "light"
                                }
                            }
                        },
                        "19": {
                            "name": "Family Room",
                            "channel": {
                                "2": {
                                    "name": "Covelight",
                                    "type": "light"
                                }
                            }
                        },
                        "12": {
                            "name": "Master Entrance",
                            "channel": {
                                "8": {
                                    "name": "Spot",
                                    "type": "light"
                                }
                            }
                        },
                        "14": {
                            "name": "Outside Wall",
                            "channel": {
                                "2": {
                                    "name": "Lamp",
                                    "type": "light"
                                }
                            }
                        },
                        "15": {
                            "name": "First Floor Lobby",
                            "channel": {
                                "1": {
                                    "name": "Spot",
                                    "type": "light"
                                }
                            }
                        },
                        "16": {
                            "name": "Outside villa wall",
                            "channel": {
                                "1": {
                                    "name": "out",
                                    "type": "light"
                                }
                            }
                        },
                        "17": {
                            "name": "Master Bath",
                            "channel": {
                                "1": {
                                    "name": "Spot",
                                    "type": "light"
                                }
                            }
                        },
                        "18": {
                            "name": "Master Dress",
                            "channel": {
                                "1": {
                                    "name": "Spot",
                                    "type": "light"
                                }
                            }
                        }
                    },
                    "port": 12345
                },
                "options": {},
                "pref_disable_new_entities": false,
                "pref_disable_polling": false,
                "source": "import",
                "unique_id": null,
                "disabled_by": null

ok. what you used to have should work and it is similar to what i have in my house.

i believe you are copied on the messages from the main thread. i will build a custom library to see if it works with these things and if it does, will figure out how to add it to the configuration

1 Like

Hey @BinGraiban would you mind taking a look at this thread. I’ve got one of those cheap Chinese Ethernet to RS485 convertors. I can get messages from the Dynet system but I can’t send them. I read a few of your posts and see you have some experience that might be useful to me. I’d appreciate anything you could contribute. Thanks heaps.

Sorry to OP for highjacking. I’ll delete on request.

Hi @GazTheGeek I had similar device as you have there check this post RS-485/RS-232 it had issues if you counite in the thread there is issue with checksum, I got another bridge which is RS-485 only all that checksum error disappeared. you might also see @HoundDog post up as his bridge was configured as Dynet2 if you have system builder.

Thanks @BinGraiban. I have read both these threads a few times. What I was hoping you could do is take a screen shot of your converter’s configuration. I think I have mine properly setup but I just cannot send commands to the Dynet system and have it control a light. It says it sends the message but nothing happens.

Sure have a look

Just to note the I’m using DHCP so the static is overwritten

rs485 bridge configuration:

Thank you. Mine is set up the same. I think my hardware might be faulty

Might be I had almost the same device with RS232 and RS485 like yours it was having errors

edit: if you have system builder you might be able to check the connection there

Interesting. I was fiddling about with Net Assist trying to read and write HEX codes to/from the Ethernet to RS485 converter. I pressed a button on the wall and it read 1C 2D 64 00 00 00 FF 54 so I copied and sent the same code back again and it turned the led indicator light on the wall panel on. So I’m definitely communicating with the dynalite system. Just the codes are wrong. I have to find a way to get the correct codes to control the room lights.

Any updates on this?, my dynalite system does not report to home assistant when i use a physical switch. I have tried to run the services to collect the channel level and area preset, yet these do nothing.

The only way around it which i found is to toggle the light twice, thus updating the switch.

TIA