ok, then all correct. Everything works as you described👍
Alright folks, v0.8.1 was published yesterday
Hi folks,
First of all: congratulations on this neat integration @anotherjulien !
I have recently been analyzing the API/protocol the MyHome_UP mobile application uses to communicate with MyHomeSERVER1 and come up with both a small Python library, as well as a proof-of-concept integration for HomeAssistant.
It may make sense to join forces and extend your awesome integration for enhanced usability with MyHomeSERVER1 devices.
You can find the incomplete library at GitHub - speijnik/myhome: Python library for interacting with MyHomeSERVER1 and the POC integration at GitHub - speijnik/hass-myhomeserver: Bticino MyHomeSERVER integration for Home Assistant
Potential features: importing of names for lights, shutters and thermostats as used in MyHome_UP and access to scenes as defined via the mobile app.
Maybe my research and proof of concept can help with making this integration even better than it is today.
Hello, Thanks to @anotherjulien for the great integration. I use that for bridging and control my house with vocal control Alexa. I configure all my lights and switchs and all works perfect. The only thing I don’t understand to do is send a command to activate the perimetral alarm. I would do that in 2 ways: or send a custom command in openwebnet, or activate the scenario n.4 I have programmed in my f420 module. the problem is I have no idea how to put the code in HA.
To send a custom message, you’ll need to use the send_message
service, you can try it from the developer tools.
To use a service in a more “real life” situation, you need to trigger the service call from somewhere, the most common way is with an automation; but I’m sure there are plenty of other options, depending on your specific needs!
Thank you @speijnik! I would be glad to collaborate, yes
Your “proof of concept” seems already fairly fleshed-out!
I’m sure many people would be glad to have their devices automatically imported, even if it only works with an MHS1!
Very very interesting reverse eng. Congratulations
Sandro
Thank you for reply. forgive me, but I’m not a programmer. I was able to configure HA only by editing your examples. Can you write an example of code? I tried to put in configuration.yaml the code reported in your wiki
service: myhome.send_message
data:
message: '10*0##’
But I had a configuration error. I must to put it in an another yaml file?
@baxxx73
It all depends on your needs, triggers, conditions etc.
I try to show you small examples of how to use send message
From dev-tools example
Automation example
automation:
- alias: "example send message"
trigger:
- platform: homeassistant
event: start
condition: []
action:
- delay:
seconds: 10
- service: myhome.send_message
data:
message: "*1*1*12##" # turn on light 12
- delay:
seconds: 10
- service: myhome.send_message
data:
message: "*1*0*12##" # turn off light 12
Lovelace example
type: vertical-stack
cards:
- type: markdown
content: |
<center>
## MyHome Send Message
`service: myhome.send_message`
- type: horizontal-stack
cards:
- type: button
name: Turn on light 12
icon: mdi:send
tap_action:
action: call-service
service: myhome.send_message
service_data:
message: '*1*1*12##'
- type: button
name: Turn off light 12
icon: mdi:lightbulb-off
tap_action:
action: call-service
service: myhome.send_message
service_data:
message: '*1*0*12##'
- type: button
name: Flash light 12
icon: mdi:lamp
tap_action:
action: call-service
service: myhome.send_message
service_data:
message: '*1*18*12##'
Thank you so much @caiosweet !
I’ll try your examples.
Update:
I did it! I tried a fake light to trigger the automation, but no success. Then I use a real light module unused in my house and the automation work! if it can be useful to someone, I publish the code that I have inserted in the file automations.yaml:
alias: antifurto
description: ''
trigger:
- platform: state
entity_id: light.perimetrale
condition: []
action:
- service: myhome.send_message
data:
message: '*9*1*1##'
mode: single
When the light ‘perimetrale’ change his state (on/off) the automation turn on the Alarm. I put that in the ‘Alexa, good night’ routine
Hey all, for those who upgraded to Home Assistant 2021.9, version 0.8.2 of the integration fixes an issue with the sensor entities not updating at all!
Hi Julien, in fact after the update performed yesterday the “energy” sensors were not working. Thanks Julien!
Another Home Assistant update, another bugFix, anotherjulien…
automation:
- alias: antifurto
mode: single
description: ‘’
trigger:
- platform: state
entity_id: light.perimetrale
condition: []
action:
- service: myhome.send_message
data:
message: ‘*9*1*1##’
In the future, to prevent it from happening again, I recommend that you use code tags
Thanks
@anotherjulien
Hi. I use your integration and works great! I have idea to add “time based cover” to calculate cover possition like - https://github.com/kotborealis/home-assistant-custom-components-cover-time-based-synced - but in default built in myhome integration, what you think? You can do it?
Hi guys,
I installed the integration,it discovers the homeserver1 ,but which password do i need to put??
Thanks
Hi. You should put a OPEN password. If you have “myhomeserver1” gateway go tu MyHomeUp app and set the OPEN password
Thanks but I am not able to find where to set in the app,cold you tell my exactly how? Thanks
I think you have to login as service (using installer code - sticker in your server1) and in app go to Other>System and put the Passsword OPEN