Legrand/Bticino MyHome

As per documentation:

*#4*where*#14*T*M##
with M = operation mode

  1. heating mode
  2. conditional mode
  3. generic mode

Example:
You set up 10 zone at 21.5°C in heating mode: *#4*#10*#14*0215*1##

*4*what*where## with what = mode is not documented as a command, only as an event.
That means it is not something you can send, only receive.

For your cooling problem, I’m adding a test that will ignore “cooling” messages if you did not set your configuration with cool: True. I’m not convinced this is the right thing to do, and I can only hope there will not be any weird side effects for other users.

Your problem with zone one never went away, the fix for it is not yet published, I’m working on it and will hopefully reach something useful tonight.

I’ll try to look at the problem with overriding icons, but clearly I’m in over my head now. I have a life and a job; I’m alone maintaining this project and cannot be in 10 places at once.

Yep i know but if my termostat is in the cooling mode and i set him ‘* #4* 1* #14* 0215* 1##’ this not change him state to heat but change only temperature in cooling mode… if I want to change from cooling to heating I have to send first: ‘* 4* 1* 1##’ - and only this command change my state from cooling to heat… when i send ‘* 4* 0* 1##’ then termostat change state to cooling.
Maybe it’s just my case, but that’s how it works for me.

Ignoring the cooling message will not solve the problem because the thermostats have really switched to cooling mode - why? I have no idea, but if the same problem appears one day, I will check the logs as soon as possible - some command had to be sent that changed the mode of all thermostats to cooling. I need to find this command and its source - I’ll let you know when I find it :slight_smile:
Meanwhile, the only problem I know is not changing the mode from cooling to heating despite selecting this mode in the thermostat card - I described it above.

I can live with it all and get around it somehow, but I want to help in the development of integration because you do a really great job - and thanks to reporting problems or proposing their solutions, I hope that I help at least a little in improving integration :slight_smile:

Can you please share the store? There are option to send it to my country. I checked the official stores in my country and the F454 costs 800€!! Thanks!

Sure, here you go!
(For information, the official retail price from Legrand is 206.30€ + VAT, so I don’t know how someone could try to sell this for 800€!)

1 Like

Last (I hope) question:
Do you plan to add the option of having several gates at the same time - for example for two different systems (but on the same network)?

Do you mean several gateways with entirely different buses? So cabling your home to have multiple distinct systems?
Not at the moment, and not in the foreseeable future, no.
If you need something like that, @Sdomotica_Automation has a solution that works for hotels and other professional settings for sale.

If you mean having a bus extender like F422 and use addresses like <A><PL>#4#<Int>, then maybe, I’ll need to see what kind of work is required for that.

1 Like

Hmm, i mean gateways with entirely different buses but bus extender (f422) and use multi local bus sounds great :slight_smile: Thanks for reply

so I don’t know how someone could try to sell this for 800€!

Different brand :rofl: :rofl: :rofl: :rofl:

1.000,65 € (VAT excluded)

:scream: :scream: :scream:
How is this even possible…?!

In the official catalog it is unfortunately possible, can you believe it? :poop: :speak_no_evil:
But other vendors sell it for half the price.
In any case, none like your link :0)
:+1:

For those concerned with the heating problem, the current master should contain the necessary fix.
Testers are welcome!

1 Like

Ok. Now the command ‘* 4 * 4001 # …’ will not change the preset temperature of the first zone anymore :fist:
I noticed that when starting and reading the values from the thermostats, you do not send the ‘# 4 * where * 20##’ command (checking valve statuses), which results in the default setting of the current state of the thermostat to ’ heating ', even though the thermostat has physically turned off and the head has closed. When i manually send ‘# 4 * where * 20 ##’ or I change the set temperature higher than the current one in the room and then come back below - thermostat change his state to correct state :slight_smile:

So far, I solved the problem using automation, which is performed 2 minutes after the start of the home assistant - it sends a command to all thermostats requesting the return of the valve status: ‘* # 4 * 0 * 20 ##’
Such a small trifle :sweat_smile: :smiley:

You use actuators (DIMENSION = 20); some people use valves (DIMENSION = 19)
I’m not even going into people using split control (DIMENSION = 22); and I’m not yet ready to add fan coil speed into the mix (DIMENSION = 11)

How do you propose to handle that? How do I know if I need to send *#4*where*20## or *#4*where*19## ?

Hi anotherjulien,
I have also a bt f454 that i would like to connect to home assistant.
I foud your awesome work so congratulations and BRAVO.
I have a question regarding the anotherjulien/OWNd 305 ownd package.
Where do i have to install it? Custom components?
Thank you

Hi! You don’t need to bother about OWNd, Home-Assistant handles its installation automatically in the background!

Dimension 11 is only read dimension not write
Bye
Sandro

Hi Julien,

i installed the latest version and get the warnings underneath

2021-10-22 12:46:06 WARNING (SyncWorker_0) [homeassistant.loader] We found a custom integration myhome which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you experience issues with Home Assistant
2021-10-22 12:46:06 WARNING (SyncWorker_2) [homeassistant.loader] We found a custom integration google_home which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you experience issues with Home Assistant
2021-10-22 12:46:06 WARNING (SyncWorker_1) [homeassistant.loader] We found a custom integration blueiris which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you experience issues with Home Assistant
2021-10-22 12:46:06 WARNING (SyncWorker_1) [homeassistant.loader] We found a custom integration hacs which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you experience issues with Home Assistant
2021-10-22 12:46:06 WARNING (SyncWorker_1) [homeassistant.loader] We found a custom integration esxi_stats which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you experience issues with Home Assistant
2021-10-22 12:50:00 WARNING (MainThread) [custom_components.myhome] Data received is not a message: None
2021-10-22 13:00:00 WARNING (MainThread) [custom_components.myhome] Data received is not a message: None
2021-10-22 13:02:28 WARNING (MainThread) [custom_components.myhome] Unknown device: WHO=1 WHERE=18
2021-10-22 13:03:57 WARNING (MainThread) [custom_components.myhome] Unknown device: WHO=1 WHERE=18
2021-10-22 13:06:51 WARNING (MainThread) [custom_components.myhome] Unknown device: WHO=1 WHERE=18
2021-10-22 13:10:00 WARNING (MainThread) [custom_components.myhome] Data received is not a message: None
2021-10-22 13:20:00 WARNING (MainThread) [custom_components.myhome] Data received is not a message: None
2021-10-22 13:30:00 WARNING (MainThread) [custom_components.myhome] Data received is not a message: None
2021-10-22 13:40:00 WARNING (MainThread) [custom_components.myhome] Data received is not a message: None
2021-10-22 13:50:00 WARNING (MainThread) [custom_components.myhome] Data received is not a message: None

@anotherjulien with the new version it seems that the problem for me has been solved!!

Thank you very much!!

Hi. Gateway MHS1 still disconnects after 8-12 hours of operation. ACK doesn’t help :frowning: I need to have home assistant reboot automations several times a day :face_with_raised_eyebrow:
Last log with a valid connection:

2021-10-27 05:31:04 DEBUG (MainThread) [custom_components.myhome] Message *#18*53*51## was successfully sent.
2021-10-27 05:32:02 DEBUG (MainThread) [custom_components.myhome] Message *#18*51*51## was successfully queued.
2021-10-27 05:32:02 DEBUG (MainThread) [custom_components.myhome] Message *#18*52*51## was successfully queued.
2021-10-27 05:32:02 DEBUG (MainThread) [custom_components.myhome] Message *#18*53*51## was successfully queued.
2021-10-27 05:32:02 DEBUG (MainThread) [custom_components.myhome] Message *#18*51*51## was successfully unqueued by worker 0.
2021-10-27 05:32:02 DEBUG (MainThread) [custom_components.myhome] Command session connection reset, retrying...
2021-10-27 05:32:02 DEBUG (MainThread) [custom_components.myhome] Opening command session.
2021-10-27 05:32:02 DEBUG (MainThread) [custom_components.myhome] Negotiating command session.
2021-10-27 05:32:02 DEBUG (MainThread) [custom_components.myhome] Reply: *#*1##
2021-10-27 05:32:02 DEBUG (MainThread) [custom_components.myhome] Received SHA challenge: *98*2##
2021-10-27 05:32:02 DEBUG (MainThread) [custom_components.myhome] Detected SHA-256 method.
2021-10-27 05:32:02 DEBUG (MainThread) [custom_components.myhome] Accepting challenge, initiating handshake.
2021-10-27 05:32:02 DEBUG (MainThread) [custom_components.myhome] Received Ra.
2021-10-27 05:32:02 DEBUG (MainThread) [custom_components.myhome] Generated Rb.
2021-10-27 05:32:02 DEBUG (MainThread) [custom_components.myhome] Sending command session password.
2021-10-27 05:32:02 DEBUG (MainThread) [custom_components.myhome] Received HMAC response.
2021-10-27 05:32:02 DEBUG (MainThread) [custom_components.myhome] Server identity confirmed.
2021-10-27 05:32:03 DEBUG (MainThread) [custom_components.myhome] Message *#18*51*51## received response *#18*51*51*1237559##.
2021-10-27 05:32:03 DEBUG (MainThread) [custom_components.myhome] Message *#18*51*51## was successfully sent.
2021-10-27 05:32:03 DEBUG (MainThread) [custom_components.myhome] Message *#18*52*51## was successfully unqueued by worker 0.
2021-10-27 05:32:03 DEBUG (MainThread) [custom_components.myhome] Message *#18*52*51## received response *#18*52*51*0##.
2021-10-27 05:32:03 DEBUG (MainThread) [custom_components.myhome] Message *#18*52*51## was successfully sent.
2021-10-27 05:32:03 DEBUG (MainThread) [custom_components.myhome] Message *#18*53*51## was successfully unqueued by worker 0.
2021-10-27 05:32:03 DEBUG (MainThread) [custom_components.myhome] Message *#18*53*51## received response *#18*53*51*651134##.
2021-10-27 05:32:03 DEBUG (MainThread) [custom_components.myhome] Message *#18*53*51## was successfully sent.

2021-10-27 05:33:02 DEBUG (MainThread) [custom_components.myhome] Message *#18*51*51## was successfully queued.
2021-10-27 05:33:02 DEBUG (MainThread) [custom_components.myhome] Message *#18*52*51## was successfully queued.
2021-10-27 05:33:02 DEBUG (MainThread) [custom_components.myhome] Message *#18*53*51## was successfully queued.
2021-10-27 05:33:02 DEBUG (MainThread) [custom_components.myhome] Message *#18*51*51## was successfully unqueued by worker 0.
2021-10-27 05:33:02 DEBUG (MainThread) [custom_components.myhome] Command session connection reset, retrying...
2021-10-27 05:33:02 DEBUG (MainThread) [custom_components.myhome] Opening command session.

2021-10-27 05:33:30 INFO (MainThread) [custom_components.myhome] Found gateway: 192.168.128.204
2021-10-27 05:34:00 INFO (MainThread) [custom_components.myhome] Found gateway: 192.168.128.204

2021-10-27 05:34:02 DEBUG (MainThread) [custom_components.myhome] Message *#18*51*51## was successfully queued.
2021-10-27 05:34:02 DEBUG (MainThread) [custom_components.myhome] Message *#18*52*51## was successfully queued.
2021-10-27 05:34:02 DEBUG (MainThread) [custom_components.myhome] Message *#18*53*51## was successfully queued.

2021-10-27 05:35:00 DEBUG (MainThread) [homeassistant.core] Bus:Handling <Event automation_triggered[L]: name=MyHome ACK, entity_id=automation.myhome_ack, source=time pattern>
2021-10-27 05:35:00 DEBUG (MainThread) [homeassistant.core] Bus:Handling <Event state_changed[L]: entity_id=automation.myhome_ack, old_state=<state automation.myhome_ack=on; last_triggered=2021-10-27T05:30:00.006297+02:00, mode=single, current=0, id=1628013119528, friendly_name=MyHome ACK @ 2021-10-26T21:26:47.723669+02:00>, new_state=<state automation.myhome_ack=on; last_triggered=2021-10-27T05:35:00.006956+02:00, mode=single, current=1, id=1628013119528, friendly_name=MyHome ACK @ 2021-10-26T21:26:47.723669+02:00>>
2021-10-27 05:35:00 DEBUG (MainThread) [homeassistant.core] Bus:Handling <Event call_service[L]: domain=myhome, service=send_message, service_data=message=*#1*59##>
2021-10-27 05:35:00 DEBUG (MainThread) [custom_components.myhome] message to be sent: *#1*59##
2021-10-27 05:35:00 DEBUG (MainThread) [custom_components.myhome] OWN Message: *#1*59##
2021-10-27 05:35:00 DEBUG (MainThread) [custom_components.myhome] message valid
2021-10-27 05:35:00 DEBUG (MainThread) [custom_components.myhome] Message *#1*59## was successfully queued.

and then just messages repeating every minute:

2021-10-27 05:34:02 DEBUG (MainThread) [custom_components.myhome] Message *#18*51*51## was successfully queued.
2021-10-27 05:34:02 DEBUG (MainThread) [custom_components.myhome] Message *#18*52*51## was successfully queued.
2021-10-27 05:34:02 DEBUG (MainThread) [custom_components.myhome] Message *#18*53*51## was successfully queued.

2021-10-27 05:35:02 DEBUG (MainThread) [custom_components.myhome] Message *#18*51*51## was successfully queued.
2021-10-27 05:35:02 DEBUG (MainThread) [custom_components.myhome] Message *#18*52*51## was successfully queued.
2021-10-27 05:35:02 DEBUG (MainThread) [custom_components.myhome] Message *#18*53*51## was successfully queued.

hmm do you have any idea? Maybe these logs will help you somehow :cold_face:

Hello, I see that my KM4691s are sending also a message about humidity but i don’t find how to manage it on my devices

2021-10-27 18:16:55 DEBUG (MainThread) [custom_components.myhome] Received: *#4*1*60*71##
2021-10-27 18:16:55 INFO (MainThread) [custom_components.myhome] Zone 1's main sensor is reporting a humidity of 71.0%.