Julien thanks for this great software !!!
Hi I am a hobby python programmer and am doing an integration of +/- 145 lamps and switch in three segments with a MH200N gateway and 2 * F422 Bus extenders. (Mode=2).
The extended addressing is implemented for a large part in the OWNd
module, but not working yet.
I’ve read that this issue has been popping up regularly lately, so I’d like to share my preliminary solution with you.
An extended address is for an F422
# where =
APL#4#<IF>
`IF` stands for interface (see documentation F422)
and IF must be a integer between 1-9 in two digits ( the hardware bus format)
example:
A = 1 area
PL = 2 point Light
IF = 3 interface
WHO = 1
On = 1 (what)
OFF = 0 (what)
Complete bus command : *<who>*<what>*<where>##
in this case is 12#4#03
you enter this in the registration file’s lights of swichts.yaml
lamp on
*1*1*12#4#03##
lamp off
*1*0*12#4#03##
Noting new so far.
Issue Extend addressing F422
Problem with extended address <where>
this is put on the bus correctly, but when the status of the bus is read back the <where>
command is stripped into two parts, a <where>
and a <_where_param>
which is done in the OWNd module (message.py)
As a result, the registration and the feedback are not matched. (you don’t get status feed back)
Solution F422 issue
my workaround is a modification in the OWNd module. (pip installed part software)
so that the <where>
is the entire address.
line 201-204 OWNd / message.py
@property
def where(self) -> str:
"""The 'where' ID of the subject of this message"""
return self._where
changed in :
@property
def where(self) -> str:
"""The 'where' ID of the subject of this message"""
return f'{self._where}{self._match.group("where_param")}'
address example:
example: light.yaml
the F411/4 behind the interface “01” (two digits !!!)
model: F416U1 directly after the gateway.
# light:
- platform: myhome
device:
# Bulb1
garage:
where: '11#4#01'
name: Lamp_1
dimmable: False
manufacturer: BTicino
model: F411U4
# Bulb 2
dining_room:
where: '12#4#01'
name: Lamp_2
dimmable: False
manufacturer: BTicino
model: F411U4
# Bulb 3
main_bedroom_1:
where: '13#4#01'
name: Lamp_3
dimmable: False
manufacturer: BTicino
model: F411U4
# Bulb 4
main_bedroom_2:
where: '14#4#01'
name: Lamp_4
dimmable: False
manufacturer: BTicino
model: F411U4
# Dimmer spot
spot_lamp:
where: '15'
name: Spot Lamp
dimmable: True
manufacturer: BTicino
model: F416U1
be careful,
I can’t completely oversee the consistency for heating alarm, etc
But for switching and lamps this works great.