Yes, i can add a HeatingThermostat. Do you mean the DummyThermostat device?
I like to ask for a hopefully not difficult adaption of this plugin. Currently the name of the devices which are added to the HassDevice are provided as they are to Hass.
Result in HAss is
This is okay as soon as you are not searching for all existing device in HAss provided by Pimatic fpr example.
What I want to ask for is an option to add a prefix in front of each device. Like following:
User defined prefix could be
Expected result in HAss should be
Running systems will not be affected as long as the prefix is not activated (which isn’t a must). With this option it would be possible to search and identify entities provided by the pimaitc-hass plugin.
There’s an update of the pimatic-hass plugin. The most important changes are:
- support for buttons, variable and sensor devices
- if a device is not recognised as switch, contract, presence, light, button or variables device, all the device attributes are added as sensor to home-assistant.
- resync between pimatic and home-assistant when home-assistant or pimatic restarts
- pimatic prefix to recognise a device when connecting multiple pimatics to home-assistant
Latest version is 0.2.22
Thanks for this great update. Works for me and opens unexpected possibilities .
Only the resync do not really work for me. When HomeAssistent gets restarted the Pimatic provided devices gets not resynced. To get it back its not enough to refresh the HassDevice (in earlier versions this helps if something was not synced). I need to restart pimatic completely to get it synced. After pimatic is up again the data in HAss gets sync after a tiny delay.
Maybe an environment specific problem on my side!?
Be aware that the resync is in 2 steps. First the republishing of the devices and after approx 5-6 seconds the update of the states.
Not all device variations are tested, so it will help if you got debug info around on the resync moment of Pmatic and Home-assistant.
Another issue is that home-assistant is replacing ‘-’ by ‘_’ in device-id’s.
Thats tricky if you want to use device-id as key. If ther’s a mismatch of keys, hass and Pimatic will not sync. And that problem is only for 2-way devices
@OrTiN can you do a test with an device with an ID with only letters?
Sure I will come back to you with result tomorrow (today )
With the newest version 0.2.22 it seems to work everything.
NOTE: Take care, that the MQTT integration tooks over the config you added basing on the Wiki of the plugin in the configration.yaml. In my environment the config was not overwritten. There was still the
It must be this:
birth_message: topic: 'hass/status' payload: 'online' will_message: topic: 'hass/status' payload: 'offline'
Update pimatic-hass version 0.2.29
- variables and attributes sensor. Expose variables of a VariablesDevice or all attributes of any Pimatic device to Hass as sensor data
- thermostat (DummyHeatingThermostat, DummyThermostat and TadoThermostat)
- availablity status in Hass
More info readme
I have updated to 0.2.27. Its the latest which was provided. With this version after Hass restart the entities from Pimatic are not coming back. WIll go back to 0.2.26 to ensure its related to the update. Before it works fine.
Same behavior on my productive system. Went back to 0.2.26 and it works again.
In 0.2.27 i introduced the availability status. If pimatic restarts or stops, or the hass device restarts, the status in Hass per entity will go to ‘unavailable’. After restart the status will go back to normal (available).
This is a better way, than the yellow block telling that the entity is unavailable or the entity looks still working but doesn’t respond.
I fixed the restart issue in version 0.2.28.
@OrTiN if you can test and hopefully confirm that the fix works.
0.2.28 works again. The new “unavailable” is working as described. During restart (Pimatic or Hass) it will be indicated this way, really nice!
A thermostat is shown without any info, but this is better as showing the last state. After the restart is completed all entities are updated with the current state of pimatic!
I’ve added support for Shutters and Alarm Panel in pimatic-hass -> version 0.2.29.
The shutter should be based on the DummyShutter device in pimatic and for the Alarm Panel you need to use the DummyAlarmPanel that is part of the pimatic-dummies plugin. More information.
Will give it a try when I am back from my business trip end of month.